mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +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": "armv7em-none-eabi",
|
||||
"build-tags": ["nrf52", "nrf"],
|
||||
"pre-link-args": [
|
||||
"-nostdlib",
|
||||
"-nostartfiles",
|
||||
"-mcpu=cortex-m4",
|
||||
"-mthumb",
|
||||
"-T", "targets/nrf52.ld",
|
||||
"-Wl,--gc-sections",
|
||||
"-fno-exceptions", "-fno-unwind-tables",
|
||||
"-ffunction-sections", "-fdata-sections",
|
||||
"-Os",
|
||||
"cflags": [
|
||||
"--target=armv7em-none-eabi",
|
||||
"-Qunused-arguments",
|
||||
"-DNRF52832_XXAA",
|
||||
"-Ilib/CMSIS/CMSIS/Include",
|
||||
"-Ilib/CMSIS/CMSIS/Include"
|
||||
],
|
||||
"ldflags": [
|
||||
"-T", "targets/nrf52.ld"
|
||||
],
|
||||
"extra-files": [
|
||||
"lib/nrfx/mdk/system_nrf52.c",
|
||||
"src/device/nrf/nrf52.s"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user