Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16492df

Browse files
committed
Blind attempt to fix LLVM dependency in the backend
Commit ecaf7c5 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
1 parent 31dcfae commit 16492df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/common.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ objfiles.txt: Makefile $(SUBDIROBJS) $(OBJS)
2323

2424
ifeq ($(with_llvm), yes)
2525
objfiles.txt: $(patsubst %.o,%.bc, $(OBJS))
26+
$(patsubst %.o,%.bc, $(OBJS)): $(OBJS)
2627
endif
2728

2829
# make function to expand objfiles.txt contents

0 commit comments

Comments
 (0)