Skip to content

Commit

Permalink
Update common-cxxflags.py comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 24, 2021
1 parent 8320599 commit b59a433
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildroot/share/PlatformIO/scripts/common-cxxflags.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def add_cpu_freq():

# 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 (when upload is not done automatically by jlink/stlink).
# Without this, PIO will recompile everything twice for any small change.
# It will separate release and debug build folders.
# It useful to keep two live versions: a debug version for debugging and another for
# release, for flashing when upload is not done automatically by jlink/stlink.
# 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']:
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'

Expand Down

0 comments on commit b59a433

Please sign in to comment.