aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/CMakeLists.txt
blob: 097a8177ea1fe1474f7ffd5e4d0502c5ac292212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(LLVM_TARGET_DEFINITIONS DarwinLdOptions.td)
tablegen(LLVM DarwinLdOptions.inc -gen-opt-parser-defs)
add_public_tablegen_target(DriverOptionsTableGen)

add_lld_library(lldDriver
  DarwinLdDriver.cpp

  ADDITIONAL_HEADER_DIRS
  ${LLD_INCLUDE_DIR}/lld/Driver

  LINK_COMPONENTS
    Option
    Support

  LINK_LIBS
    lldCore
    lldMachO
    lldReaderWriter
    lldYAML
  )

add_dependencies(lldDriver DriverOptionsTableGen)