|
@@ -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'
|