
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.
14 строки
338 Б
JSON
14 строки
338 Б
JSON
{
|
|
"inherits": ["cortex-m"],
|
|
"llvm-target": "armv6m-none-eabi",
|
|
"build-tags": ["atsamd21g18a", "atsamd21g18", "atsamd21", "sam"],
|
|
"cflags": [
|
|
"--target=armv6m-none-eabi"
|
|
],
|
|
"linkerscript": "targets/atsamd21.ld",
|
|
"extra-files": [
|
|
"src/device/sam/atsamd21g18a.s"
|
|
],
|
|
"openocd-transport": "swd",
|
|
"openocd-target": "at91samdXX"
|
|
}
|