-
-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p8: Fix build when building for P8 variants #1913
Conversation
Building with a TARGET_DEVICE set to any of the P8 variants' names caused the build to fail, because they contained hyphens. The build defines a macro `TARGET_DEVICE_$VARIANT`, which fails if `$VARIANT` contains a hyphen.
Build size and comparison to main:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how did that ever work ;)
good catch. changes fixes the builds
@StarGate01 I think you did the initial support for p8 builds, could you have a look at this please |
The properties are used for CMake-GUI configuration applications to provide a set of values by dropdown.
It seems the TARGET_DEVICE_${VARIANT} definition is never used anywhere 🤷 only the I don't know if the So if we want to keep the |
I did think of that, but I don't think it's very important to keep the strings exactly as they were tbh. It would be good to have @StarGate01 take a look at it. I think it is good to have the |
Good catch, I actually fixed this in my fork a while back since I had the same issue: StarGate01@3e0841d . I'll eventually rebase my fork and update the PRs (https://github.com/InfiniTimeOrg/InfiniTime/pulls/stargate01) |
Thanks for the feedback! Nice we found the same solution independently 😁 |
Building with a TARGET_DEVICE set to any of the P8 variants' names caused the build to fail, because they contained hyphens. The build defines a macro
TARGET_DEVICE_$VARIANT
, which fails if$VARIANT
contains a hyphen.