mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-06 12:49:02 +00:00
nintendoswitch: Add experimental Nintendo Switch support without CRT
Bare minimal nintendo switch support using LLD
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"llvm-target": "aarch64",
|
||||
"build-tags": ["nintendoswitch", "arm64"],
|
||||
"goos": "linux",
|
||||
"goarch": "arm64",
|
||||
"compiler": "clang",
|
||||
"linker": "ld.lld",
|
||||
"rtlib": "compiler-rt",
|
||||
"libc": "picolibc",
|
||||
"gc": "conservative",
|
||||
"relocation-model": "pic",
|
||||
"cflags": [
|
||||
"-target", "aarch64-none-linux-gnu",
|
||||
"-mtune=cortex-a57",
|
||||
"-fPIE",
|
||||
"-Werror",
|
||||
"-Qunused-arguments",
|
||||
"-fshort-enums",
|
||||
"-fomit-frame-pointer",
|
||||
"-fno-exceptions", "-fno-unwind-tables",
|
||||
"-ffunction-sections", "-fdata-sections"
|
||||
],
|
||||
"linkerscript": "targets/nintendoswitch.ld",
|
||||
"extra-files": [
|
||||
"targets/nintendoswitch.s",
|
||||
"src/runtime/runtime_nintendoswitch.s"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user