Put PIO "debug" build in the corner (#19975)

This commit is contained in:
Victor Oliveira 2020-10-31 19:14:10 -03:00 committed by GitHub
parent da60dcbf2e
commit 76f4dd34e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,3 +10,13 @@ env.Append(CXXFLAGS=[
#"-Wno-maybe-uninitialized", #"-Wno-maybe-uninitialized",
#"-Wno-sign-compare" #"-Wno-sign-compare"
]) ])
# Useful for JTAG debugging
#
# It will separe release and debug build folders.
# It useful when we need keep two live versions: one debug, for debugging,
# other release, for flashing.
# Without this, PIO will recompile everything twice for any small change.
#
if env.GetBuildType() == "debug":
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'