
This brings some consistency to the CFlags and fixes the issue that on some platforms (Linux, MacOS), no optimization level was set and therefore C files in packages were not optimized at all.
19 строки
384 Б
JSON
19 строки
384 Б
JSON
{
|
|
"llvm-target": "xtensa",
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"build-tags": ["xtensa", "baremetal", "linux", "arm"],
|
|
"gc": "conservative",
|
|
"scheduler": "none",
|
|
"cflags": [
|
|
"--target=xtensa",
|
|
"-Werror",
|
|
"-fshort-enums",
|
|
"-Wno-macro-redefined",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"--gc-sections"
|
|
]
|
|
}
|