From 07b4e1135486632791a7ca0f225541f65b2b3350 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Tue, 15 Sep 2015 12:15:48 +0200 Subject: Adding preprocessing recipes to AVR core --- platform.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'platform.txt') diff --git a/platform.txt b/platform.txt index 58eed79..b2be1a3 100644 --- a/platform.txt +++ b/platform.txt @@ -81,6 +81,12 @@ recipe.size.regex=^(?:\.text|\.data|\.bootloader)\s+([0-9]+).* recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).* recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).* +## Preprocessor +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} "{source_file}" + +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}" # AVR Uploader/Programmers tools # ------------------------------ -- cgit v1.2.3-18-g5258