diff options
Diffstat (limited to 'targets/avr.json')
-rw-r--r-- | targets/avr.json | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/targets/avr.json b/targets/avr.json index b7f87ca42..459fae32f 100644 --- a/targets/avr.json +++ b/targets/avr.json @@ -2,16 +2,21 @@ "build-tags": ["avr", "baremetal", "linux", "arm"], "goos": "linux", "goarch": "arm", - "compiler": "avr-gcc", + "compiler": "clang", "gc": "conservative", - "linker": "avr-gcc", + "linker": "llvm-build.master/bin/ld.lld", "scheduler": "none", + "rtlib": "compiler-rt", + "libc": "picolibc", "cflags": [ - "-gdwarf-4" + "--target=avr-atmel-none", + "-g", + "-Werror", + "-Qunused-arguments" ], "ldflags": [ "-T", "targets/avr.ld", - "-Wl,--gc-sections" + "--gc-sections" ], "extra-files": [ "src/runtime/scheduler_avr.S" |