Skip to content

Commit fce7184

Browse files
committed
platform: Skip lto for wiring.c
- Causes some weird issues, will investigate it later. Signed-off-by: Dakkshesh <[email protected]>
1 parent 9602bbb commit fce7184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ compiler.warning_flags.all=-Wall -Wextra
2020
# Default "compiler.path" is correct, change only if you want to override the initial value
2121
compiler.path={runtime.tools.cba-llvm.path}/bin/
2222
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
23+
compiler.c.flags=--target=avr -c -g -Os {compiler.warning_flags} --skip-lto=wiring.c --sysroot={runtime.tools.cba-avr-sysroot.path} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
2424
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
2525
compiler.c.elf.cmd=clang++
2626
compiler.S.flags=--target=avr --sysroot={runtime.tools.cba-avr-sysroot.path} -c -g -x assembler-with-cpp -flto -MMD

0 commit comments

Comments
 (0)