forked from OSchip/llvm-project
[CMake] LTO depends on intrinsics_gen
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. llvm-svn: 287393
This commit is contained in:
parent
ae3c4eec5a
commit
caf299ffe1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue