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

This commit is contained in:
Ivan Kravets
2019-06-02 14:11:31 +03:00
parent 23a2022f04
commit d0b3c5ee86
7 changed files with 25 additions and 18 deletions
+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"):