summaryrefslogtreecommitdiff
path: root/minion/scripts/override_compiledb_path.py
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-30 12:50:01 +0200
committerHampusM <hampus@hampusmat.com>2022-05-30 12:50:01 +0200
commit1452435a8d662bbd39f0c812cdc24ddd4ec226d3 (patch)
treec9e55e696c975ca1b85ac3c01d979fd312354d12 /minion/scripts/override_compiledb_path.py
parentdeaf3d4323f6fbc997c2d280fee16b39fd192de1 (diff)
build(minion): add override compiledb path
Diffstat (limited to 'minion/scripts/override_compiledb_path.py')
-rw-r--r--minion/scripts/override_compiledb_path.py7
1 files changed, 7 insertions, 0 deletions
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)