Skip to content

Commit 2fb3770

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 711fe3d commit 2fb3770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/debug/Compiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static private List getCommandCompilerS(String avrBasePath, List includePaths,
547547
avrBasePath + "avr-gcc",
548548
"-c", // compile, don't link
549549
"-g", // include debugging info (so errors include line numbers)
550-
"-assembler-with-cpp",
550+
"-x","assembler-with-cpp",
551551
"-mmcu=" + boardPreferences.get("build.mcu"),
552552
"-DF_CPU=" + boardPreferences.get("build.f_cpu"),
553553
"-DARDUINO=" + Base.REVISION,

0 commit comments

Comments
 (0)