aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/nintendoswitch.json
blob: e86cfc1712d90932983a9443d9e97bd7b2d9f468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  "llvm-target": "aarch64",
  "cpu": "cortex-a57",
  "features": "+aes,+crc,+fp-armv8,+neon,+sha2,+v8a,-fmv",
  "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"
  ]
}