mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Append __PLATFORMIO_DEBUG__ macro in debug session
This commit is contained in:
@ -288,6 +288,7 @@ def PioClean(env, clean_dir):
|
|||||||
def ProcessDebug(env):
|
def ProcessDebug(env):
|
||||||
if not env.subst("$PIODEBUGFLAGS"):
|
if not env.subst("$PIODEBUGFLAGS"):
|
||||||
env.Replace(PIODEBUGFLAGS=["-Og", "-g3", "-ggdb3"])
|
env.Replace(PIODEBUGFLAGS=["-Og", "-g3", "-ggdb3"])
|
||||||
|
env.Append(PIODEBUGFLAGS=["-D__PLATFORMIO_DEBUG__"])
|
||||||
env.Append(
|
env.Append(
|
||||||
BUILD_FLAGS=env.get("PIODEBUGFLAGS", []),
|
BUILD_FLAGS=env.get("PIODEBUGFLAGS", []),
|
||||||
BUILD_UNFLAGS=["-Os", "-O0", "-O1", "-O2", "-O3"])
|
BUILD_UNFLAGS=["-Os", "-O0", "-O1", "-O2", "-O3"])
|
||||||
|
Reference in New Issue
Block a user