Skip to content

Handle different MBED_APP_* flags #122

Answered by multiplemonomials
ladislas asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, this isn't really possible, because those are global #defines -- any source file in Mbed could potentially use them, so if they change, the entire OS has to be rebuilt.

What you could do, however, is make two CMake build dirs, and build both in parallel with different values of these defined. This could be done via the command line, or through CLion's ability to have multiple build dirs active at the same time.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ladislas
Comment options

ladislas
Jan 23, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

ladislas
Feb 2, 2023
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants