mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 19:44:00 +00:00
all: compile and link using clang, where possible
This commit is contained in:
+9
-11
@@ -2,18 +2,16 @@
|
||||
"inherits": ["cortex-m"],
|
||||
"llvm-target": "armv6m-none-eabi",
|
||||
"build-tags": ["nrf51822", "nrf51", "nrf"],
|
||||
"pre-link-args": [
|
||||
"-nostdlib",
|
||||
"-nostartfiles",
|
||||
"-mcpu=cortex-m0",
|
||||
"-mthumb",
|
||||
"-T", "targets/nrf51.ld",
|
||||
"-Wl,--gc-sections",
|
||||
"-fno-exceptions", "-fno-unwind-tables",
|
||||
"-ffunction-sections", "-fdata-sections",
|
||||
"-Os",
|
||||
"cflags": [
|
||||
"--target=armv6m-none-eabi",
|
||||
"-Qunused-arguments",
|
||||
"-DNRF51",
|
||||
"-Ilib/CMSIS/CMSIS/Include",
|
||||
"-Ilib/CMSIS/CMSIS/Include"
|
||||
],
|
||||
"ldflags": [
|
||||
"-T", "targets/nrf51.ld"
|
||||
],
|
||||
"extra-files": [
|
||||
"lib/nrfx/mdk/system_nrf51.c",
|
||||
"src/device/nrf/nrf51.s"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user