Skip to content

mbed compile's --cflags option #3384

Closed
Closed
@Nodraak

Description

@Nodraak

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions