mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
c4392d9472
The Go tools only consider lowercase .s files to be assembly files. By renaming these to uppercase .S files they won't be discovered by the Go toolchain and listed as the SFiles to be assembled. There is a difference between .s and .S: only uppercase .S will be passed through the preprocessor. Doing that is normally safe, and definitely safe in the case of these files.
36 lines
910 B
JSON
36 lines
910 B
JSON
{
|
|
"llvm-target": "aarch64",
|
|
"cpu": "cortex-a57",
|
|
"features": "+aes,+crc,+crypto,+fp-armv8,+neon,+sha2,+v8a",
|
|
"build-tags": ["nintendoswitch", "arm64"],
|
|
"scheduler": "tasks",
|
|
"goos": "linux",
|
|
"goarch": "arm64",
|
|
"linker": "ld.lld",
|
|
"rtlib": "compiler-rt",
|
|
"libc": "picolibc",
|
|
"gc": "conservative",
|
|
"relocation-model": "pic",
|
|
"default-stack-size": 2048,
|
|
"cflags": [
|
|
"-target", "aarch64-unknown-none",
|
|
"-fPIE",
|
|
"-Werror",
|
|
"-fshort-enums",
|
|
"-fomit-frame-pointer",
|
|
"-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"-pie",
|
|
"-z", "notext"
|
|
],
|
|
"linkerscript": "targets/nintendoswitch.ld",
|
|
"extra-files": [
|
|
"targets/nintendoswitch.s",
|
|
"src/internal/task/task_stack_arm64.S",
|
|
"src/runtime/asm_arm64.S",
|
|
"src/runtime/runtime_nintendoswitch.S"
|
|
]
|
|
}
|