• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/gold.exports)
2
3if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR )
4  include_directories( ${LLVM_BINUTILS_INCDIR} )
5
6  # Because off_t is used in the public API, the largefile parts are required for
7  # ABI compatibility.
8  add_definitions( -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 )
9
10  set(LLVM_LINK_COMPONENTS
11     ${LLVM_TARGETS_TO_BUILD}
12     Linker
13     LTO
14     BitWriter
15     IPO
16     )
17
18  add_llvm_loadable_module(LLVMgold
19    gold-plugin.cpp
20    )
21
22endif()
23
24