From 1452435a8d662bbd39f0c812cdc24ddd4ec226d3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 30 May 2022 12:50:01 +0200 Subject: build(minion): add override compiledb path --- minion/platformio.ini | 1 + minion/scripts/override_compiledb_path.py | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 minion/scripts/override_compiledb_path.py diff --git a/minion/platformio.ini b/minion/platformio.ini index 75ca9d1..2abc5cf 100644 --- a/minion/platformio.ini +++ b/minion/platformio.ini @@ -15,3 +15,4 @@ build_src_flags = -Wconversion -pedantic -felide-constructors +extra_scripts = post:scripts/override_compiledb_path.py diff --git a/minion/scripts/override_compiledb_path.py b/minion/scripts/override_compiledb_path.py new file mode 100644 index 0000000..38f52e9 --- /dev/null +++ b/minion/scripts/override_compiledb_path.py @@ -0,0 +1,7 @@ +import os + +Import("env") + +path = os.path.join("$BUILD_DIR", "compile_commands.json") + +env.Replace(COMPILATIONDB_PATH=path) -- cgit v1.2.3-18-g5258