[llvm] r239796 - modules: Add explicit dependency on intrinsics_gen
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Jun 15 17:44:12 PDT 2015
Author: dexonsmith
Date: Mon Jun 15 19:44:12 2015
New Revision: 239796
URL: http://llvm.org/viewvc/llvm-project?rev=239796&view=rev
Log:
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.
Modified:
llvm/trunk/lib/AsmParser/CMakeLists.txt
llvm/trunk/lib/Bitcode/Writer/CMakeLists.txt
llvm/trunk/lib/ExecutionEngine/CMakeLists.txt
llvm/trunk/lib/ExecutionEngine/MCJIT/CMakeLists.txt
llvm/trunk/lib/ExecutionEngine/Orc/CMakeLists.txt
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt
llvm/trunk/lib/IRReader/CMakeLists.txt
llvm/trunk/lib/Linker/CMakeLists.txt
llvm/trunk/lib/Object/CMakeLists.txt
llvm/trunk/lib/ProfileData/CMakeLists.txt
llvm/trunk/lib/Transforms/Hello/CMakeLists.txt
llvm/trunk/unittests/ADT/CMakeLists.txt
Modified: llvm/trunk/lib/AsmParser/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/CMakeLists.txt (original)
+++ llvm/trunk/lib/AsmParser/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -6,4 +6,7 @@ add_llvm_library(LLVMAsmParser
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/Bitcode/Writer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/CMakeLists.txt (original)
+++ llvm/trunk/lib/Bitcode/Writer/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -3,4 +3,7 @@ add_llvm_library(LLVMBitWriter
BitcodeWriter.cpp
BitcodeWriterPass.cpp
ValueEnumerator.cpp
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/ExecutionEngine/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/CMakeLists.txt (original)
+++ llvm/trunk/lib/ExecutionEngine/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -9,6 +9,9 @@ add_llvm_library(LLVMExecutionEngine
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine
+
+ DEPENDS
+ intrinsics_gen
)
add_subdirectory(Interpreter)
Modified: llvm/trunk/lib/ExecutionEngine/MCJIT/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/MCJIT/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/MCJIT/CMakeLists.txt (original)
+++ llvm/trunk/lib/ExecutionEngine/MCJIT/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -1,3 +1,6 @@
add_llvm_library(LLVMMCJIT
MCJIT.cpp
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/ExecutionEngine/Orc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/CMakeLists.txt (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -6,4 +6,7 @@ add_llvm_library(LLVMOrcJIT
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -5,4 +5,7 @@ add_llvm_library(LLVMRuntimeDyld
RuntimeDyldCOFF.cpp
RuntimeDyldELF.cpp
RuntimeDyldMachO.cpp
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/IRReader/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IRReader/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/IRReader/CMakeLists.txt (original)
+++ llvm/trunk/lib/IRReader/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -3,4 +3,7 @@ add_llvm_library(LLVMIRReader
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/IRReader
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/Linker/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/CMakeLists.txt (original)
+++ llvm/trunk/lib/Linker/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -3,4 +3,7 @@ add_llvm_library(LLVMLinker
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Linker
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/Object/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/Object/CMakeLists.txt (original)
+++ llvm/trunk/lib/Object/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -18,4 +18,7 @@ add_llvm_library(LLVMObject
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/ProfileData/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/CMakeLists.txt (original)
+++ llvm/trunk/lib/ProfileData/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -11,4 +11,7 @@ add_llvm_library(LLVMProfileData
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/ProfileData
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/lib/Transforms/Hello/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Hello/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Hello/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Hello/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -12,4 +12,7 @@ endif()
add_llvm_loadable_module( LLVMHello
Hello.cpp
+
+ DEPENDS
+ intrinsics_gen
)
Modified: llvm/trunk/unittests/ADT/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/CMakeLists.txt?rev=239796&r1=239795&r2=239796&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/CMakeLists.txt (original)
+++ llvm/trunk/unittests/ADT/CMakeLists.txt Mon Jun 15 19:44:12 2015
@@ -46,3 +46,5 @@ set(ADTSources
add_llvm_unittest(ADTTests
${ADTSources}
)
+
+add_dependencies(ADTTests intrinsics_gen)
More information about the llvm-commits
mailing list