aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2022-09-15 10:24:55 +0700
committerJohn Naylor <john.naylor@postgresql.org>2022-09-15 10:53:48 +0700
commit16492df70bb25bc99ca3c340a75ba84ca64171b8 (patch)
tree668f3d8585dcdd4234ec46b9cede2f42094da463 /src
parent31dcfae83c001c6cdfd1e67c11adb9149f564da0 (diff)
downloadpostgresql-16492df70bb25bc99ca3c340a75ba84ca64171b8.tar.gz
postgresql-16492df70bb25bc99ca3c340a75ba84ca64171b8.zip
Blind attempt to fix LLVM dependency in the backend
Commit ecaf7c5df5 removed gram.h from the backend's generated-headers target. In LLVM builds, this leads to loss of dependency information when generating .bc files. To fix, add a rule that mirrors ad-hoc .o dependencies for .bc files as well. Per cfbot (no buildfarm failures reported) Analysis by Tom Lane and Andres Freund Proposed fix by Andres Freund Discussion: https://www.postgresql.org/message-id/20220914210427.y26tkagmxo5wwbvp%40awork3.anarazel.de
Diffstat (limited to 'src')
-rw-r--r--src/backend/common.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/common.mk b/src/backend/common.mk
index fa96a82b1a0..61861f5c7eb 100644
--- a/src/backend/common.mk
+++ b/src/backend/common.mk
@@ -23,6 +23,7 @@ objfiles.txt: Makefile $(SUBDIROBJS) $(OBJS)
ifeq ($(with_llvm), yes)
objfiles.txt: $(patsubst %.o,%.bc, $(OBJS))
+$(patsubst %.o,%.bc, $(OBJS)): $(OBJS)
endif
# make function to expand objfiles.txt contents