]> granicus.if.org Git - llvm/commitdiff
[CMake] LTO depends on intrinsics_gen
authorChris Bieneman <beanz@apple.com>
Fri, 18 Nov 2016 23:03:51 +0000 (23:03 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 18 Nov 2016 23:03:51 +0000 (23:03 +0000)
lto.cpp has the following include chain:

llvm/Bitcode/BitcodeReader.h
llvm/IR/ModuleSummaryIndex.h
llvm/IR/Module.h
llvm/IR/Function.h
llvm/IR/Argument.h
llvm/IR/Attributes.h
llvm/IR/Attributes.gen

This means LTO needs to depend on intrinsics_gen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287393 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/CMakeLists.txt

index 8a1571ba03f126afc951e8959854ad9b285924a8..6e913519a809a3afa6115665561e9272d4e52c60 100644 (file)
@@ -16,7 +16,7 @@ set(SOURCES
 
 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
 
-add_llvm_library(LTO SHARED ${SOURCES})
+add_llvm_library(LTO SHARED ${SOURCES} DEPENDS intrinsics_gen)
 
 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
   DESTINATION include/llvm-c