From 3b8f6e75f3c8c6d192621f21624cc8cee04ec3cb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 9 Apr 2018 16:42:02 -0400 Subject: Fix partial-build problems introduced by having more generated headers. Commit 372728b0d created some problems for usages like building a subdirectory without having first done "make all" at the top level, or for proceeding directly to "make install" without "make all". The only reasonably clean way to fix this seems to be to force the submake-generated-headers rule to fire in *any* "make all" or "make install" command anywhere in the tree. To avoid lots of redundant work, as well as parallel make jobs possibly clobbering each others' output, we still need to be sure that the rule fires only once in a recursive build. For that, adopt the same MAKELEVEL hack previously used for "temp-install". But try to document it a bit better. The submake-errcodes mechanism previously used in src/port/ and src/common/ is subsumed by this, so we can get rid of those special cases. It was inadequate for src/common/ anyway after the aforesaid commit, and it always risked parallel attempts to build errcodes.h. Discussion: https://postgr.es/m/E1f5FAB-0006LU-MB@gemulon.postgresql.org --- src/backend/jit/llvm/Makefile | 1 - 1 file changed, 1 deletion(-) (limited to 'src/backend/jit/llvm') diff --git a/src/backend/jit/llvm/Makefile b/src/backend/jit/llvm/Makefile index d7a36d7371..e2db4cea65 100644 --- a/src/backend/jit/llvm/Makefile +++ b/src/backend/jit/llvm/Makefile @@ -27,7 +27,6 @@ CFLAGS += $(LLVM_CFLAGS) CXXFLAGS += $(LLVM_CXXFLAGS) override CPPFLAGS := $(LLVM_CPPFLAGS) $(CPPFLAGS) SHLIB_LINK += $(LLVM_LIBS) -SHLIB_PREREQS += submake-generated-headers # Because this module includes C++ files, we need to use a C++ # compiler for linking. Makefile.shlib uses $(COMPILER) to build -- cgit v1.2.1