Quellcode durchsuchen

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

Victor Oliveira vor 4 Jahren
Ursprung
Commit
76f4dd34e0
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10
    0
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

+ 10
- 0
buildroot/share/PlatformIO/scripts/common-cxxflags.py Datei anzeigen

10
   #"-Wno-maybe-uninitialized",
10
   #"-Wno-maybe-uninitialized",
11
   #"-Wno-sign-compare"
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'

Laden…
Abbrechen
Speichern