avr: use Clang for compiling C and assembly files

This is one step towards an avr-gcc free TinyGo toolchain, something
that will make it easier to use AVR targets in TinyGo.
This commit is contained in:
Ayke van Laethem
2021-02-11 14:19:46 +01:00
committed by Ron Evans
parent 9c8ef5c48f
commit 801bd2a7ff
3 changed files with 16 additions and 2 deletions
+4 -1
View File
@@ -3,11 +3,14 @@
"build-tags": ["avr", "baremetal", "linux", "arm"],
"goos": "linux",
"goarch": "arm",
"compiler": "avr-gcc",
"compiler": "clang",
"gc": "conservative",
"linker": "avr-gcc",
"scheduler": "none",
"default-stack-size": 256,
"cflags": [
"--target=avr-unknown-unknown"
],
"ldflags": [
"-T", "targets/avr.ld",
"-Wl,--gc-sections"