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
+3 -1
View File
@@ -3,7 +3,9 @@
"cpu": "attiny85",
"build-tags": ["attiny85", "attiny", "avr2", "avr25"],
"cflags": [
"-mmcu=attiny85"
"-mmcu=attiny85",
"-D__AVR_ARCH__=25",
"-Qunused-arguments"
],
"ldflags": [
"-mmcu=avr25"