aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/riscv.json
blob: 581c5e8ce4333979a313f1b39126de0d78881e0a (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
{
	"llvm-target": "riscv32--none",
	"goos": "linux",
	"goarch": "arm",
	"build-tags": ["tinygo.riscv", "linux", "arm"],
	"gc": "conservative",
	"compiler": "riscv64-unknown-elf-gcc",
	"linker": "riscv64-unknown-elf-ld",
	"cflags": [
		"-march=rv32imac",
		"-mabi=ilp32",
		"-Os",
		"-Werror",
		"-nostdinc",
		"-fno-exceptions", "-fno-unwind-tables",
		"-ffunction-sections", "-fdata-sections"
	],
	"ldflags": [
		"-melf32lriscv",
		"--gc-sections"
	],
	"extra-files": [
		"src/device/riscv/start.S"
	]
}