Update common-cxxflags.py comment

This commit is contained in:
Scott Lahteine 2021-03-20 22:43:47 -05:00 committed by Scott Lahteine
parent 5ff4476ccb
commit a9f022dacf

View file

@ -20,10 +20,10 @@ def add_cpu_freq():
# Useful for JTAG debugging # Useful for JTAG debugging
# #
# It will separe release and debug build folders. # It will separate release and debug build folders.
# It useful when we need keep two live versions: one debug, for debugging, # It useful to keep two live versions: a debug version for debugging and another for
# other release, for flashing (when upload is not done automatically by jlink/stlink). # release, for flashing when upload is not done automatically by jlink/stlink.
# Without this, PIO will recompile everything twice for any small change. # Without this, PIO needs to recompile everything twice for any small change.
if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']: if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']:
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug' env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'