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.
This commit is contained in:
Jimmy Hedman 2014-01-21 20:12:48 +01:00
parent 711fe3d91a
commit 2fb3770757
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ public class Compiler implements MessageConsumer {
avrBasePath + "avr-gcc",
"-c", // compile, don't link
"-g", // include debugging info (so errors include line numbers)
"-assembler-with-cpp",
"-x","assembler-with-cpp",
"-mmcu=" + boardPreferences.get("build.mcu"),
"-DF_CPU=" + boardPreferences.get("build.f_cpu"),
"-DARDUINO=" + Base.REVISION,