aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/riscv.json
blob: 920110dae93665277da484875abba196eb7de435 (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
{
	"goos": "linux",
	"goarch": "arm",
	"build-tags": ["tinygo.riscv", "baremetal", "linux", "arm"],
	"gc": "conservative",
	"linker": "ld.lld",
	"rtlib": "compiler-rt",
	"libc": "picolibc",
	"cflags": [
		"-Werror",
		"-mno-relax",
		"-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
		"-ffunction-sections", "-fdata-sections"
	],
	"ldflags": [
		"--gc-sections"
	],
	"extra-files": [
		"src/device/riscv/start.S",
		"src/internal/task/task_stack_tinygoriscv.S",
		"src/runtime/asm_riscv.S",
		"src/device/riscv/handleinterrupt.S"
	],
	"gdb": ["riscv64-unknown-elf-gdb"]
}