Skip to content

Commit 7ff5e02

Browse files
committed
🔨 Fix LPC176x debug build
See MarlinFirmware#23635
1 parent f7cb1ce commit 7ff5e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildroot/share/PlatformIO/scripts/common-cxxflags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def add_cpu_freq():
2929
# It useful to keep two live versions: a debug version for debugging and another for
3030
# release, for flashing when upload is not done automatically by jlink/stlink.
3131
# Without this, PIO needs to recompile everything twice for any small change.
32-
if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']:
32+
if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink', 'custom']:
3333
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
3434

3535
# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns

0 commit comments

Comments
 (0)