From c8e1186e9ebc35d6362ba5d29aa4bda4cad26cc7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Fri, 11 Mar 2016 02:01:21 -0800 Subject: [PATCH] Improve recipe.preproc.macros IDE 1.6.6 compatibility With Arduino IDE 1.6.6(only) the previous default preprocessed_file_path value was causing a file named null to be created in the root of the Arduino IDE installation folder which can be avoided on Windows by using the filename nul. A file named nul will still be created on other OSs but now will be placed in the temporary build folder which will avoid possible problems if the user doesn't have write permission to the IDE installation folder. --- avr/platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avr/platform.txt b/avr/platform.txt index d54d2645a..f1b9287ee 100644 --- a/avr/platform.txt +++ b/avr/platform.txt @@ -85,7 +85,7 @@ preproc.includes.flags=-w -x c++ -M -MG -MP recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.includes.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" # The following line provides Arduino IDE 1.6.6 compatibility with the Arduino IDE 1.6.7 version of recipe.preproc.macros used here -preprocessed_file_path=null +preprocessed_file_path={build.path}/nul preproc.macros.flags=-w -x c++ -E -CC recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{preprocessed_file_path}"