mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 20:13:40 +00:00
c698e99880
This avoids errors like the following:
ld.lld-9: error: undefined symbol: __umodsi3
ld.lld-9: error: undefined symbol: __aeabi_uidivmod
31 lines
653 B
JSON
31 lines
653 B
JSON
{
|
|
"llvm-target": "thumb4-none-eabi",
|
|
"cpu": "arm7tdmi",
|
|
"build-tags": ["gameboyadvance", "arm7tdmi", "baremetal", "linux", "arm"],
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"compiler": "clang",
|
|
"linker": "ld.lld",
|
|
"rtlib": "compiler-rt",
|
|
"cflags": [
|
|
"-g",
|
|
"--target=thumb4-none-eabi",
|
|
"-mcpu=arm7tdmi",
|
|
"-Oz",
|
|
"-Werror",
|
|
"-fshort-enums",
|
|
"-Wno-macro-redefined",
|
|
"-Qunused-arguments",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"--gc-sections"
|
|
],
|
|
"linkerscript": "targets/gameboy-advance.ld",
|
|
"extra-files": [
|
|
"targets/gameboy-advance.s"
|
|
],
|
|
"emulator": ["mgba-qt"]
|
|
}
|