From 5449852030889d0e5cb5b350f9018efe1d147313 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 16 Jun 2015 00:44:12 +0000 Subject: [PATCH] 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 --- lib/AsmParser/CMakeLists.txt | 3 +++ lib/Bitcode/Writer/CMakeLists.txt | 3 +++ lib/ExecutionEngine/CMakeLists.txt | 3 +++ lib/ExecutionEngine/MCJIT/CMakeLists.txt | 3 +++ lib/ExecutionEngine/Orc/CMakeLists.txt | 3 +++ lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt | 3 +++ lib/IRReader/CMakeLists.txt | 3 +++ lib/Linker/CMakeLists.txt | 3 +++ lib/Object/CMakeLists.txt | 3 +++ lib/ProfileData/CMakeLists.txt | 3 +++ lib/Transforms/Hello/CMakeLists.txt | 3 +++ unittests/ADT/CMakeLists.txt | 2 ++ 12 files changed, 35 insertions(+) diff --git a/lib/AsmParser/CMakeLists.txt b/lib/AsmParser/CMakeLists.txt index 78668377d13..0d727232105 100644 --- a/lib/AsmParser/CMakeLists.txt +++ b/lib/AsmParser/CMakeLists.txt @@ -6,4 +6,7 @@ add_llvm_library(LLVMAsmParser ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis + + DEPENDS + intrinsics_gen ) diff --git a/lib/Bitcode/Writer/CMakeLists.txt b/lib/Bitcode/Writer/CMakeLists.txt index f097b097c33..82dc6b24137 100644 --- a/lib/Bitcode/Writer/CMakeLists.txt +++ b/lib/Bitcode/Writer/CMakeLists.txt @@ -3,4 +3,7 @@ add_llvm_library(LLVMBitWriter BitcodeWriter.cpp BitcodeWriterPass.cpp ValueEnumerator.cpp + + DEPENDS + intrinsics_gen ) diff --git a/lib/ExecutionEngine/CMakeLists.txt b/lib/ExecutionEngine/CMakeLists.txt index e8a18d3e5af..2d9337bbefd 100644 --- a/lib/ExecutionEngine/CMakeLists.txt +++ b/lib/ExecutionEngine/CMakeLists.txt @@ -9,6 +9,9 @@ add_llvm_library(LLVMExecutionEngine ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine + + DEPENDS + intrinsics_gen ) add_subdirectory(Interpreter) diff --git a/lib/ExecutionEngine/MCJIT/CMakeLists.txt b/lib/ExecutionEngine/MCJIT/CMakeLists.txt index 2911a507722..b1e2bc3d635 100644 --- a/lib/ExecutionEngine/MCJIT/CMakeLists.txt +++ b/lib/ExecutionEngine/MCJIT/CMakeLists.txt @@ -1,3 +1,6 @@ add_llvm_library(LLVMMCJIT MCJIT.cpp + + DEPENDS + intrinsics_gen ) diff --git a/lib/ExecutionEngine/Orc/CMakeLists.txt b/lib/ExecutionEngine/Orc/CMakeLists.txt index 18f0441c466..1da164237a6 100644 --- a/lib/ExecutionEngine/Orc/CMakeLists.txt +++ b/lib/ExecutionEngine/Orc/CMakeLists.txt @@ -6,4 +6,7 @@ add_llvm_library(LLVMOrcJIT ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc + + DEPENDS + intrinsics_gen ) diff --git a/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt b/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt index e78408a3b6a..182f98200fc 100644 --- a/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt +++ b/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt @@ -5,4 +5,7 @@ add_llvm_library(LLVMRuntimeDyld RuntimeDyldCOFF.cpp RuntimeDyldELF.cpp RuntimeDyldMachO.cpp + + DEPENDS + intrinsics_gen ) diff --git a/lib/IRReader/CMakeLists.txt b/lib/IRReader/CMakeLists.txt index 2c0e61b65fb..87ea88039ef 100644 --- a/lib/IRReader/CMakeLists.txt +++ b/lib/IRReader/CMakeLists.txt @@ -3,4 +3,7 @@ add_llvm_library(LLVMIRReader ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/IRReader + + DEPENDS + intrinsics_gen ) diff --git a/lib/Linker/CMakeLists.txt b/lib/Linker/CMakeLists.txt index 5a1f31a97ee..f9d8e0925ae 100644 --- a/lib/Linker/CMakeLists.txt +++ b/lib/Linker/CMakeLists.txt @@ -3,4 +3,7 @@ add_llvm_library(LLVMLinker ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Linker + + DEPENDS + intrinsics_gen ) diff --git a/lib/Object/CMakeLists.txt b/lib/Object/CMakeLists.txt index 17aac8b4121..de809187191 100644 --- a/lib/Object/CMakeLists.txt +++ b/lib/Object/CMakeLists.txt @@ -18,4 +18,7 @@ add_llvm_library(LLVMObject ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Object + + DEPENDS + intrinsics_gen ) diff --git a/lib/ProfileData/CMakeLists.txt b/lib/ProfileData/CMakeLists.txt index 282760f0e66..22cca4b44df 100644 --- a/lib/ProfileData/CMakeLists.txt +++ b/lib/ProfileData/CMakeLists.txt @@ -11,4 +11,7 @@ add_llvm_library(LLVMProfileData ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/ProfileData + + DEPENDS + intrinsics_gen ) diff --git a/lib/Transforms/Hello/CMakeLists.txt b/lib/Transforms/Hello/CMakeLists.txt index 3851b35871f..e0b81907c7f 100644 --- a/lib/Transforms/Hello/CMakeLists.txt +++ b/lib/Transforms/Hello/CMakeLists.txt @@ -12,4 +12,7 @@ endif() add_llvm_loadable_module( LLVMHello Hello.cpp + + DEPENDS + intrinsics_gen ) diff --git a/unittests/ADT/CMakeLists.txt b/unittests/ADT/CMakeLists.txt index d899852325c..cbcb0848556 100644 --- a/unittests/ADT/CMakeLists.txt +++ b/unittests/ADT/CMakeLists.txt @@ -46,3 +46,5 @@ set(ADTSources add_llvm_unittest(ADTTests ${ADTSources} ) + +add_dependencies(ADTTests intrinsics_gen) -- 2.34.1