summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRJ Skerry-Ryan <rryan@mixxx.org>2018-10-17 09:08:46 -0700
committerRJ Skerry-Ryan <rryan@mixxx.org>2018-10-17 09:08:46 -0700
commit8d2d8529916e8e32e263633166f7705c714d7b60 (patch)
tree41c2930dd36fc36bed3fc7361bcd5c0727971123
parentbde1cee221f21d9c110ed856da88474ecddd2c06 (diff)
Build compile_commands.json by default and add it to the .gitignore.
-rw-r--r--.gitignore1
-rw-r--r--SConstruct2
2 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3fc5557322..3a3e97fdb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -59,3 +59,4 @@ lib/*/lib/*.lib
lib/qtscript-bytearray/*.cc
*.vscode
+compile_commands.json \ No newline at end of file
diff --git a/SConstruct b/SConstruct
index 170977c3be..791258b60f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -83,6 +83,8 @@ Import('sources')
# Produce compile_commands.json, which is used by clang-tidy and related tools.
build.env.Tool("compile_commands")
build.env.Alias("compiledb", build.env.CompilationDatabase('compile_commands.json'))
+# Build compile_commands.json by default.
+build.env.Default("compile_commands.json")
#Build Vamp minimal plugins
#VariantDir("vamp-plugins", "src", duplicate=0)