Closed
Description
Description
- Type: Question
- Related issue: [tools!] Allow command line passing of cflags #2431 and [Tools] Add simple build profiles to toolchains #2802
- Priority: Minor
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 !