aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/riscv.json
blob: 33475eb247cd80ea5a0d19d0176bb37501ab6741 (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", "baremetal", "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"
	]
}