瀏覽代碼

🔨 Fix LPC176x debug build

See #23635
Scott Lahteine 2 年之前
父節點
當前提交
7ff5e02f6b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

+ 1
- 1
buildroot/share/PlatformIO/scripts/common-cxxflags.py 查看文件

@@ -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…
取消
儲存