Skip to content

Commit 657cf30

Browse files
committed
added compiledb script
1 parent 369fd8a commit 657cf30

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

compiledb.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
Import("env")
3+
4+
# include toolchain paths
5+
env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True)
6+
7+
# override compilation DB path
8+
env.Replace(COMPILATIONDB_PATH=os.path.join("$BUILD_DIR", "compile_commands.json"))

platformio.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ build_flags = -Wl,--undefined,_printf_float
1717

1818
upload_protocol = stlink
1919
debug_tool = stlink
20+
21+
extra_scripts = compiledb.py

0 commit comments

Comments
 (0)