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

Commit 5449852

Browse files
committed
modules: Add explicit dependency on intrinsics_gen
`LLVM_ENABLE_MODULES` builds sometimes fail because `Intrinsics.td` needs to regenerate `Instrinsics.h` before anyone can include anything from the LLVM_IR module. Represent the dependency explicitly to prevent that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239796 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 6025d73 commit 5449852

File tree

12 files changed

+35
-0
lines changed

12 files changed

+35
-0
lines changed

lib/AsmParser/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ add_llvm_library(LLVMAsmParser
66

77
ADDITIONAL_HEADER_DIRS
88
${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
9+
10+
DEPENDS
11+
intrinsics_gen
912
)

lib/Bitcode/Writer/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ add_llvm_library(LLVMBitWriter
33
BitcodeWriter.cpp
44
BitcodeWriterPass.cpp
55
ValueEnumerator.cpp
6+
7+
DEPENDS
8+
intrinsics_gen
69
)

lib/ExecutionEngine/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ add_llvm_library(LLVMExecutionEngine
99

1010
ADDITIONAL_HEADER_DIRS
1111
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine
12+
13+
DEPENDS
14+
intrinsics_gen
1215
)
1316

1417
add_subdirectory(Interpreter)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
add_llvm_library(LLVMMCJIT
22
MCJIT.cpp
3+
4+
DEPENDS
5+
intrinsics_gen
36
)

lib/ExecutionEngine/Orc/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ add_llvm_library(LLVMOrcJIT
66

77
ADDITIONAL_HEADER_DIRS
88
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc
9+
10+
DEPENDS
11+
intrinsics_gen
912
)

lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ add_llvm_library(LLVMRuntimeDyld
55
RuntimeDyldCOFF.cpp
66
RuntimeDyldELF.cpp
77
RuntimeDyldMachO.cpp
8+
9+
DEPENDS
10+
intrinsics_gen
811
)

lib/IRReader/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ add_llvm_library(LLVMIRReader
33

44
ADDITIONAL_HEADER_DIRS
55
${LLVM_MAIN_INCLUDE_DIR}/llvm/IRReader
6+
7+
DEPENDS
8+
intrinsics_gen
69
)

lib/Linker/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ add_llvm_library(LLVMLinker
33

44
ADDITIONAL_HEADER_DIRS
55
${LLVM_MAIN_INCLUDE_DIR}/llvm/Linker
6+
7+
DEPENDS
8+
intrinsics_gen
69
)

lib/Object/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ add_llvm_library(LLVMObject
1818

1919
ADDITIONAL_HEADER_DIRS
2020
${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
21+
22+
DEPENDS
23+
intrinsics_gen
2124
)

lib/ProfileData/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ add_llvm_library(LLVMProfileData
1111

1212
ADDITIONAL_HEADER_DIRS
1313
${LLVM_MAIN_INCLUDE_DIR}/llvm/ProfileData
14+
15+
DEPENDS
16+
intrinsics_gen
1417
)

lib/Transforms/Hello/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ endif()
1212

1313
add_llvm_loadable_module( LLVMHello
1414
Hello.cpp
15+
16+
DEPENDS
17+
intrinsics_gen
1518
)

unittests/ADT/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,5 @@ set(ADTSources
4646
add_llvm_unittest(ADTTests
4747
${ADTSources}
4848
)
49+
50+
add_dependencies(ADTTests intrinsics_gen)

0 commit comments

Comments
 (0)