summaryrefslogtreecommitdiff
path: root/gnu/llvm/tools/gold/CMakeLists.txt
blob: d2580329acabd23ae17d9224a37c16fa01eeb35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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_loadable_module(LLVMgold
    gold-plugin.cpp
    )

endif()