Browse Source

🔨 Fix LPC176x debug build

See #23635
Scott Lahteine 2 years ago
parent
commit
7ff5e02f6b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

+ 1
- 1
buildroot/share/PlatformIO/scripts/common-cxxflags.py View File

@@ -29,7 +29,7 @@ if pioutil.is_pio_build():
29 29
 	# It useful to keep two live versions: a debug version for debugging and another for
30 30
 	# release, for flashing when upload is not done automatically by jlink/stlink.
31 31
 	# 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']:
33 33
 		env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
34 34
 
35 35
 	# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns

Loading…
Cancel
Save