From 12fc19300eee73b4cc61950c72213ecba60d954e Mon Sep 17 00:00:00 2001 From: Gabe R Date: Tue, 5 Jan 2021 14:40:06 -0600 Subject: [PATCH] Add extra flags to enable build caching See #296 for some discussion of the issue. --- platform.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform.txt b/platform.txt index a2060e3..a57dc5f 100644 --- a/platform.txt +++ b/platform.txt @@ -44,8 +44,8 @@ compiler.warning_flags.all={compiler.warning_flags.default} -Wextra # flags compiler.preproc.flags={compiler.cxx.flags} -w -x c++ -E -CC {compiler.preproc.extra_flags} compiler.asm.flags=-include {build.variant.path}/mbed/mbed_config.h -iprefix{runtime.platform.path}/cores/ @{build.variant.path}/mbed/.asm-flags {compiler.asm.extra_flags} -compiler.c.flags=-iprefix{runtime.platform.path}/cores/ @{build.variant.path}/mbed/.c-flags {compiler.c.extra_flags} -compiler.cxx.flags=-include {build.variant.path}/mbed/mbed_config.h -include {cores.path}/arduino/sdk/ArduinoSDK.h -iprefix{runtime.platform.path}/cores/ @{build.variant.path}/mbed/.cxx-flags {compiler.cxx.extra_flags} +compiler.c.flags=-iprefix{runtime.platform.path}/cores/ @{build.variant.path}/mbed/.c-flags -MMD {compiler.c.extra_flags} +compiler.cxx.flags=-include {build.variant.path}/mbed/mbed_config.h -include {cores.path}/arduino/sdk/ArduinoSDK.h -iprefix{runtime.platform.path}/cores/ @{build.variant.path}/mbed/.cxx-flags -MMD {compiler.cxx.extra_flags} compiler.ld.flags=@{build.variant.path}/mbed/.ld-flags {compiler.ld.extra_flags} --specs=nano.specs -lsupc++ -lstdc++ -lm compiler.ar.flags=rcsP {compiler.ar.extra_flags} {compiler.ar.extra_flags} compiler.axf2bin.flags={compiler.axf2bin.extra_flags} {compiler.axf2bin.extra_flags} -O binary