all: compile and link using clang, where possible

This commit is contained in:
Ayke van Laethem
2018-11-22 13:24:13 +01:00
parent 4a8ced590b
commit 62d74d8329
15 changed files with 133 additions and 100 deletions
+12 -1
View File
@@ -1,7 +1,18 @@
{
"build-tags": ["tinygo.arm", "js", "wasm"],
"linker": "arm-none-eabi-gcc",
"compiler": "clang-7",
"linker": "arm-none-eabi-ld",
"rtlib": "compiler-rt",
"cflags": [
"-Oz",
"-mthumb",
"-fshort-enums",
"-fno-exceptions", "-fno-unwind-tables",
"-ffunction-sections", "-fdata-sections"
],
"ldflags": [
"--gc-sections"
],
"objcopy": "arm-none-eabi-objcopy",
"gdb": "arm-none-eabi-gdb"
}