Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 18e8f9e

Browse files
committed
Recommit r274270, [CMake] Module builds depend on target intrinsics_gen to be built first.
The builder clang-x86_64-linux-selfhost-modules-2 complains. Investigating. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308439 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent cb5b6da commit 18e8f9e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,15 @@ add_subdirectory(lib/TableGen)
843843

844844
add_subdirectory(utils/TableGen)
845845

846+
# Force target to be built as soon as possible. Clang modules builds depend
847+
# header-wise on it as they ship all headers from the umbrella folders. Building
848+
# an entire module might include header, which depends on intrinsics_gen. This
849+
# should be right after LLVMSupport and LLVMTableGen otherwise we introduce a
850+
# circular dependence.
851+
if (LLVM_ENABLE_MODULES)
852+
list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
853+
endif(LLVM_ENABLE_MODULES)
854+
846855
add_subdirectory(include/llvm)
847856

848857
add_subdirectory(lib)

0 commit comments

Comments
 (0)