
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.
21 строка
415 Б
JSON
21 строка
415 Б
JSON
{
|
|
"llvm-target": "xtensa",
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"build-tags": ["xtensa", "baremetal", "linux", "arm"],
|
|
"gc": "conservative",
|
|
"scheduler": "none",
|
|
"compiler": "clang",
|
|
"cflags": [
|
|
"--target=xtensa",
|
|
"-Oz",
|
|
"-Werror",
|
|
"-fshort-enums",
|
|
"-Wno-macro-redefined",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"--gc-sections"
|
|
]
|
|
}
|