55# For more info:
66# https://arduino.github.io/arduino-cli/latest/platform-specification/
77
8- name=Arduino AVR Boards
9- version=1.8.6
8+ name=ClangBuiltArduino AVR Boards
9+ version=1.0.0
1010
1111# AVR compile variables
1212# ---------------------
@@ -18,23 +18,23 @@ compiler.warning_flags.more=-Wall
1818compiler.warning_flags.all=-Wall -Wextra
1919
2020# Default "compiler.path" is correct, change only if you want to override the initial value
21- compiler.path={runtime.tools.avr-gcc .path}/bin/
22- compiler.c.cmd=avr-gcc
23- compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
24- compiler.c.elf.flags={compiler.warning_flags} -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections
25- compiler.c.elf.cmd=avr-gcc
26- compiler.S.flags=-c -g -x assembler-with-cpp -flto -MMD
27- compiler.cpp.cmd=avr-g++
28- compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto
29- compiler.ar.cmd=avr-gcc -ar
21+ compiler.path={runtime.tools.cba-llvm .path}/bin/
22+ compiler.c.cmd=clang-wrapper
23+ compiler.c.flags=--target=avr - c -g -Os {compiler.warning_flags} --sysroot={runtime.tools.cba-avr-sysroot.path } -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
24+ compiler.c.elf.flags=--target=avr {compiler.warning_flags} --sysroot={runtime.tools.cba-avr-sysroot.path} - Os -g -flto -fuse-linker-plugin -ffunction-sections -fdata-sections - Wl,--gc-sections -fuse-ld={runtime.tools.cba-avr-bfd.path}/bin/ld.bfd
25+ compiler.c.elf.cmd=clang++
26+ compiler.S.flags=--target=avr --sysroot={runtime.tools.cba-avr-sysroot.path} - c -g -x assembler-with-cpp -flto -MMD
27+ compiler.cpp.cmd=clang++-wrapper
28+ compiler.cpp.flags=--target=avr - c -g -Os {compiler.warning_flags} --skip-lto=HardwareSerial0.cpp --sysroot={runtime.tools.cba-avr-sysroot.path} - std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fno-rtti -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto
29+ compiler.ar.cmd=llvm -ar
3030compiler.ar.flags=rcs
31- compiler.objcopy.cmd=avr -objcopy
31+ compiler.objcopy.cmd=llvm -objcopy
3232compiler.objcopy.eep.flags=-O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0
3333compiler.elf2hex.flags=-O ihex -R .eeprom
34- compiler.elf2hex.cmd=avr -objcopy
34+ compiler.elf2hex.cmd=llvm -objcopy
3535compiler.ldflags=
3636compiler.libraries.ldflags=
37- compiler.size.cmd=avr -size
37+ compiler.size.cmd=llvm -size
3838
3939# This can be overridden in boards.txt
4040build.extra_flags=
0 commit comments