all: support Arduino in the compiler driver

This makes sure the compiler itself can build/link an ELF file that
works on an Arduino.
This commit is contained in:
Ayke van Laethem
2018-09-12 20:55:50 +02:00
parent 865520b571
commit 914cd56ca5
3 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
{
"llvm-target": "avr-atmel-none",
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"]
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"],
"linker": "avr-gcc",
"pre-link-args": ["-nostdlib", "-T", "avr.ld", "-Wl,--gc-sections", "avr.S"]
}