From 2fb37707576bd90b6c04aa78df9ff9219febc51c Mon Sep 17 00:00:00 2001 From: Jimmy Hedman Date: Tue, 21 Jan 2014 20:12:48 +0100 Subject: [PATCH] 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. --- app/src/processing/app/debug/Compiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/debug/Compiler.java b/app/src/processing/app/debug/Compiler.java index a715d59a4..850f7992e 100644 --- a/app/src/processing/app/debug/Compiler.java +++ b/app/src/processing/app/debug/Compiler.java @@ -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,