mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
96b1b76483
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.
25 lines
485 B
JSON
25 lines
485 B
JSON
{
|
|
"llvm-target": "avr-unknown-unknown",
|
|
"build-tags": ["avr", "baremetal", "linux", "arm"],
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"compiler": "clang",
|
|
"gc": "conservative",
|
|
"linker": "avr-gcc",
|
|
"scheduler": "none",
|
|
"default-stack-size": 256,
|
|
"cflags": [
|
|
"--target=avr-unknown-unknown",
|
|
"-Werror"
|
|
],
|
|
"ldflags": [
|
|
"-T", "targets/avr.ld",
|
|
"-Wl,--gc-sections"
|
|
],
|
|
"extra-files": [
|
|
"src/internal/task/task_stack_avr.S",
|
|
"src/runtime/gc_avr.S"
|
|
],
|
|
"gdb": ["avr-gdb"]
|
|
}
|