aboutsummaryrefslogtreecommitdiff
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
parentae0b60e0095a118af7bb4026622d8c308e0a4c52 (diff)
parent880146aefe0e60e330409a916a0c1b4ac21388c6 (diff)
downloadgit-effbd42255aa2d93fbd5298538295b25f2b19057.tar.xz
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 $@