llvm-for-llvmta/tools/gold/CMakeLists.txt

19 lines
350 B
CMake
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/gold.exports)
if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR )
include_directories( ${LLVM_BINUTILS_INCDIR} )
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Linker
LTO
BitWriter
IPO
)
add_llvm_library(LLVMgold MODULE
gold-plugin.cpp
)
endif()