Skip to content

Commit cb0a939

Browse files
atanisoftme-no-dev
authored andcommitted
Adding debug flag to PIO build script (#2510)
Adding the -g3 flag that was omitted in the PIO build script but is present in Arduino IDE build scripts. This flag restores the ability to get line numbers from stack traces for elf files generated in PlatformIO IDE.
1 parent cebd870 commit cb0a939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/platformio-build.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
CCFLAGS=[
4646
"-Os",
47+
"-g3",
4748
"-Wall",
4849
"-nostdlib",
4950
"-Wpointer-arith",

0 commit comments

Comments
 (0)