Switch between Build Configurations (release and debug) with a new project configuration option build_type // Resolve #2184

This commit is contained in:
Ivan Kravets committed 2019-06-02 14:11:31 +03:00
1 parent 23a2022f04
commit d0b3c5ee86
7 files changed
+25 -18

No files matched your search

+1 -1
View File
@@ -298,7 +298,7 @@ def ProcessDebug(env):
if not env.subst("$PIODEBUGFLAGS"):
env.Replace(PIODEBUGFLAGS=["-Og", "-g3", "-ggdb3"])
env.Append(BUILD_FLAGS=list(env['PIODEBUGFLAGS']) +
["-D__PLATFORMIO_DEBUG__"])
["-D__PLATFORMIO_BUILD_DEBUG__"])
unflags = ["-Os"]
for level in [0, 1, 2]:
for flag in ("O", "g", "ggdb"):