You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
303 B
10 lines
303 B
import os |
|
Import("env") |
|
|
|
# include toolchain paths |
|
env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True) |
|
|
|
# override compilation DB path |
|
env.Replace(COMPILATIONDB_PATH=os.path.join("$BUILD_DIR", "compile_commands.json")) |
|
|
|
env.AddPostAction("buildprog", lambda *_, **__: env.Execute("pio run -t compiledb"))
|
|
|