1 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/gold.exports) 2 3 if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR ) 4 include_directories( ${LLVM_BINUTILS_INCDIR} ) 5 6 set(LLVM_LINK_COMPONENTS 7 ${LLVM_TARGETS_TO_BUILD} 8 Linker 9 LTO 10 BitWriter 11 IPO 12 ) 13 14 add_llvm_loadable_module(LLVMgold 15 gold-plugin.cpp 16 ) 17 18 endif() 19