
The -Qunused-arguments flag disables the warning where some flags are not relevant to a compilation. This commonly happens when compiling assembly files (.s or .S files) because some flags are specific to C and not relevant to assembly. Because practically all baremetal targets need some form of assembly, this flag is added to most CFlags. This creates a lot of noise. And it is also added for compiling C code where it might hide bugs (by hiding the fact a flag is actually unused). This commit adds the flag to all assembly compilations and removes them from all target JSON files.
19 строки
496 Б
JSON
19 строки
496 Б
JSON
{
|
|
"inherits": ["cortex-m"],
|
|
"llvm-target": "armv7em-none-eabi",
|
|
"cpu": "cortex-m7",
|
|
"build-tags": ["teensy40", "teensy", "mimxrt1062", "nxp"],
|
|
"automatic-stack-size": false,
|
|
"default-stack-size": 4096,
|
|
"cflags": [
|
|
"--target=armv7em-none-eabi",
|
|
"-mfloat-abi=soft"
|
|
],
|
|
"linkerscript": "targets/mimxrt1062-teensy40.ld",
|
|
"extra-files": [
|
|
"src/device/nxp/mimxrt1062.s",
|
|
"targets/teensy40.s"
|
|
],
|
|
"flash-command": "teensy_loader_cli -mmcu=imxrt1062 -v -w {hex}"
|
|
}
|
|
|