Browse Source

Put PIO "debug" build in the corner (#19975)

Victor Oliveira 4 years ago
parent
commit
76f4dd34e0
No account linked to committer's email address
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

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

@@ -10,3 +10,13 @@ env.Append(CXXFLAGS=[
10 10
   #"-Wno-maybe-uninitialized",
11 11
   #"-Wno-sign-compare"
12 12
 ])
13
+
14
+# Useful for JTAG debugging
15
+#
16
+# It will separe release and debug build folders. 
17
+# It useful when we need keep two live versions: one debug, for debugging, 
18
+# other release, for flashing.
19
+# Without this, PIO will recompile everything twice for any small change.
20
+# 
21
+if env.GetBuildType() == "debug":
22
+	env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'

Loading…
Cancel
Save