mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
5449852030
`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
19 lines
397 B
CMake
19 lines
397 B
CMake
# If we don't need RTTI or EH, there's no reason to export anything
|
|
# from the hello plugin.
|
|
if( NOT LLVM_REQUIRES_RTTI )
|
|
if( NOT LLVM_REQUIRES_EH )
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Hello.exports)
|
|
endif()
|
|
endif()
|
|
|
|
if(WIN32 OR CYGWIN)
|
|
set(LLVM_LINK_COMPONENTS Core Support)
|
|
endif()
|
|
|
|
add_llvm_loadable_module( LLVMHello
|
|
Hello.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|