You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to pass flags to the C and CPP compilers (like -E or -O0 or -mfloat-abi=soft). I saw the mbed compile's --cflags option, but it is not taken into account (I can see that thanks to the mbed compile's -v flags that print the actual executed command).
From the issues of this repo I saw that it might have been replaced by profile files but I have no clue about how to write this damn json (where, what name, ...).
Anyway, if the cli accept the --cflags option, I would expect it to be took into account or at least show a warning if it was to ignore them silently.
Thanks for your help !
The text was updated successfully, but these errors were encountered:
From the issues of this repo I saw that it might have been replaced by profile files but I have no clue about how to write this damn json (where, what name, ...).
The documentation you are looking for is here: https://github.com/ARMmbed/mbed-os/blob/master/docs/Toolchain_Profiles.md . TL;DR: pass the filename to mbed compile's --profile option. e.g. mbed compile -t gcc_arm -m k64f --profile my_profile.json would build you project with arm-none-eabi-gcc, for the frdm-k64f, using the profile found in my_profile.json.
Description
Question
(mbed-cli version 0.9.1 / meed-os sha ea3526d)
How to pass flags to the C and CPP compilers (like
-E
or-O0
or-mfloat-abi=soft
). I saw the mbed compile's--cflags
option, but it is not taken into account (I can see that thanks to the mbed compile's-v
flags that print the actual executed command).From the issues of this repo I saw that it might have been replaced by profile files but I have no clue about how to write this damn json (where, what name, ...).
Anyway, if the cli accept the
--cflags
option, I would expect it to be took into account or at least show a warning if it was to ignore them silently.Thanks for your help !
The text was updated successfully, but these errors were encountered: