{
	"llvm-target": "armv4t-unknown-unknown-eabi",
	"cpu": "arm7tdmi",
	"features": "+armv4t,+strict-align,-aes,-bf16,-cdecp0,-cdecp1,-cdecp2,-cdecp3,-cdecp4,-cdecp5,-cdecp6,-cdecp7,-crc,-crypto,-dotprod,-dsp,-fp16fml,-fullfp16,-hwdiv,-hwdiv-arm,-i8mm,-lob,-mve,-mve.fp,-ras,-sb,-sha2,-thumb-mode",
	"build-tags": ["gameboyadvance", "arm7tdmi", "baremetal", "linux", "arm"],
	"goos": "linux",
	"goarch": "arm",
	"linker": "ld.lld",
	"rtlib": "compiler-rt",
	"libc": "picolibc",
	"cflags": [
		"-Werror",
		"-fshort-enums",
		"-fomit-frame-pointer",
		"-fno-exceptions", "-fno-unwind-tables",
		"-ffunction-sections", "-fdata-sections"
	],
	"ldflags": [
		"--gc-sections"
	],
	"linkerscript": "targets/gameboy-advance.ld",
	"extra-files": [
		"targets/gameboy-advance.s",
		"src/runtime/gc_arm.S"
	],
	"gdb": ["gdb-multiarch"],
	"emulator": ["mgba", "-3"]
}
