1 set(LLVM_BINUTILS_INCDIR "" CACHE PATH
2 "PATH to binutils/include containing plugin-api.h for gold plugin.")
4 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/gold.exports)
6 if( NOT LLVM_BINUTILS_INCDIR )
8 elseif( NOT EXISTS "${LLVM_BINUTILS_INCDIR}/plugin-api.h" )
9 message(STATUS "plugin-api.h not found. gold plugin excluded from the build.")
11 include_directories( ${LLVM_BINUTILS_INCDIR} )
13 # Because off_t is used in the public API, the largefile parts are required for
15 add_definitions( -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 )
17 set(LLVM_LINK_COMPONENTS support)
19 add_llvm_loadable_module(LLVMgold