modules: Add explicit dependency on intrinsics_gen
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 16 Jun 2015 00:44:12 +0000 (00:44 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 16 Jun 2015 00:44:12 +0000 (00:44 +0000)
`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

12 files changed:
lib/AsmParser/CMakeLists.txt
lib/Bitcode/Writer/CMakeLists.txt
lib/ExecutionEngine/CMakeLists.txt
lib/ExecutionEngine/MCJIT/CMakeLists.txt
lib/ExecutionEngine/Orc/CMakeLists.txt
lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt
lib/IRReader/CMakeLists.txt
lib/Linker/CMakeLists.txt
lib/Object/CMakeLists.txt
lib/ProfileData/CMakeLists.txt
lib/Transforms/Hello/CMakeLists.txt
unittests/ADT/CMakeLists.txt

index 78668377d13ec78ef81fcbf82ed950d5c8cfbd91..0d72723210591fbac9fcc52a92446095a2c498dc 100644 (file)
@@ -6,4 +6,7 @@ add_llvm_library(LLVMAsmParser
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
+
+  DEPENDS
+  intrinsics_gen
   )
index f097b097c3371d5e8124293c3892ec5f5aac8e0e..82dc6b24137de2d9c76a08fd805ea2154285caf7 100644 (file)
@@ -3,4 +3,7 @@ add_llvm_library(LLVMBitWriter
   BitcodeWriter.cpp
   BitcodeWriterPass.cpp
   ValueEnumerator.cpp
+
+  DEPENDS
+  intrinsics_gen
   )
index e8a18d3e5af40e6d027078d42cc6dd118270d2e9..2d9337bbefd2de898712d0b809dd22cb38ac83cc 100644 (file)
@@ -9,6 +9,9 @@ add_llvm_library(LLVMExecutionEngine
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine
+
+  DEPENDS
+  intrinsics_gen
   )
 
 add_subdirectory(Interpreter)
index 2911a5077220668bad51e1924f84f5fc3231ed2b..b1e2bc3d635cf0bf5121f7b6671cd84434b79e8f 100644 (file)
@@ -1,3 +1,6 @@
 add_llvm_library(LLVMMCJIT
   MCJIT.cpp
+
+  DEPENDS
+  intrinsics_gen
   )
index 18f0441c466e5ae987c13d180c49ec78ec64bfc1..1da164237a67c0aec74fc7aec843d98ffbda903f 100644 (file)
@@ -6,4 +6,7 @@ add_llvm_library(LLVMOrcJIT
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc
+
+  DEPENDS
+  intrinsics_gen
   )
index e78408a3b6aee24404fd00535f4f5199402a0772..182f98200fc1c62b6a63f2c6ed83b384f0491a8a 100644 (file)
@@ -5,4 +5,7 @@ add_llvm_library(LLVMRuntimeDyld
   RuntimeDyldCOFF.cpp
   RuntimeDyldELF.cpp
   RuntimeDyldMachO.cpp
+
+  DEPENDS
+  intrinsics_gen
   )
index 2c0e61b65fbeb7cd102a258f11feae5a89bba174..87ea88039ef38047c26d9aef823450645125e51a 100644 (file)
@@ -3,4 +3,7 @@ add_llvm_library(LLVMIRReader
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/IRReader
+
+  DEPENDS
+  intrinsics_gen
   )
index 5a1f31a97ee273c5560e4f44e05d2528d79e2aea..f9d8e0925ae3228a0043fd78c27a09bf9e184da0 100644 (file)
@@ -3,4 +3,7 @@ add_llvm_library(LLVMLinker
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Linker
+
+  DEPENDS
+  intrinsics_gen
   )
index 17aac8b412112c79c27ebdcc4d650af151092202..de809187191b134ff5f1995e0f1df2347904c6a3 100644 (file)
@@ -18,4 +18,7 @@ add_llvm_library(LLVMObject
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
+
+  DEPENDS
+  intrinsics_gen
   )
index 282760f0e66b83447d5a27b7bf918b3b84d0dd63..22cca4b44df5a12beaaf05b4f5bafa24589a1fac 100644 (file)
@@ -11,4 +11,7 @@ add_llvm_library(LLVMProfileData
 
   ADDITIONAL_HEADER_DIRS
   ${LLVM_MAIN_INCLUDE_DIR}/llvm/ProfileData
+
+  DEPENDS
+  intrinsics_gen
   )
index 3851b35871f5fc7812e28295112168026caa45ff..e0b81907c7fb4190f891b67e7de897116c0417db 100644 (file)
@@ -12,4 +12,7 @@ endif()
 
 add_llvm_loadable_module( LLVMHello
   Hello.cpp
+
+  DEPENDS
+  intrinsics_gen
   )
index d899852325c297bf764ae343f7235d56740aeab5..cbcb08485563e5bdfd1852fa8627333dc02cb174 100644 (file)
@@ -46,3 +46,5 @@ set(ADTSources
 add_llvm_unittest(ADTTests
   ${ADTSources}
   )
+
+add_dependencies(ADTTests intrinsics_gen)