aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-05-19 16:02:45 -0700
committerJunio C Hamano <gitster@pobox.com>2025-05-19 16:02:46 -0700
commiteffbd42255aa2d93fbd5298538295b25f2b19057 (patch)
tree320ba5ca28a50231dafc1deb661e53537fcef5c0
parentMerge branch 'ag/doc-send-email' (diff)
parentMakefile: avoid constant rebuilds with compilation database (diff)
downloadgit-effbd42255aa2d93fbd5298538295b25f2b19057.tar.gz
git-effbd42255aa2d93fbd5298538295b25f2b19057.zip
Merge branch 'bc/make-avoid-unneeded-rebuild-with-compdb-dir'
Build performance fix. * bc/make-avoid-unneeded-rebuild-with-compdb-dir: Makefile: avoid constant rebuilds with compilation database
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index de73c6ddcd..ecd590a643 100644
--- a/Makefile
+++ b/Makefile
@@ -2805,7 +2805,7 @@ endif
compdb_dir = compile_commands
ifeq ($(GENERATE_COMPILATION_DATABASE),yes)
-missing_compdb_dir = $(compdb_dir)
+missing_compdb_dir = $(filter-out $(wildcard $(compdb_dir)), $(compdb_dir))
$(missing_compdb_dir):
@mkdir -p $@