aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorFederico Fissore <f.fissore@arduino.cc>2015-09-15 12:15:48 +0200
committerFederico Fissore <f.fissore@arduino.cc>2015-09-15 12:15:48 +0200
commit07b4e1135486632791a7ca0f225541f65b2b3350 (patch)
tree1dba63aeb9807fa6d6e7d6cbb68615c1cbcb4d76 /platform.txt
parent7cedf0de4aff5f524b0c78c154304b85936b6b38 (diff)
Adding preprocessing recipes to AVR core
Diffstat (limited to 'platform.txt')
-rw-r--r--platform.txt6
1 files changed, 6 insertions, 0 deletions
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
# ------------------------------