Skip to content

Commit c99b3d8

Browse files
author
Jimmy Hedman
committed
Compile with -x assembler-with-cpp instead of -assembler-with-cpp.
- Newer avr-gcc doesn't use -assembler-with-cpp, but uses -x assembler-with-cpp. This works with older compilers as well.
1 parent 7eb14f3 commit c99b3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avr/platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ compiler.c.cmd=avr-gcc
1717
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
1818
compiler.c.elf.flags=-Os -Wl,--gc-sections
1919
compiler.c.elf.cmd=avr-gcc
20-
compiler.S.flags=-c -g -assembler-with-cpp
20+
compiler.S.flags=-c -g -x assembler-with-cpp
2121
compiler.cpp.cmd=avr-g++
2222
compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD
2323
compiler.ar.cmd=avr-ar

0 commit comments

Comments
 (0)