aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/cortex-m.json
blob: e8588e8186ab36811ede05a9d72b82ac46a82cd2 (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
{
	"build-tags": ["cortexm", "baremetal", "linux", "arm"],
	"goos": "linux",
	"goarch": "arm",
	"compiler": "clang",
	"gc": "conservative",
	"linker": "ld.lld",
	"rtlib": "compiler-rt",
	"cflags": [
		"-Oz",
		"-mthumb",
		"-Werror",
		"-fshort-enums",
		"-nostdlibinc",
		"-Wno-macro-redefined",
		"-fno-exceptions", "-fno-unwind-tables",
		"-ffunction-sections", "-fdata-sections"
	],
	"ldflags": [
		"--gc-sections"
	],
	"extra-files": [
		"src/device/arm/cortexm.s"
	],
	"gdb": "arm-none-eabi-gdb"
}