1set(LLVM_TARGET_DEFINITIONS Options.td)
2tablegen(LLVM Options.inc -gen-opt-parser-defs)
3add_public_tablegen_target(MachOOptionsTableGen)
4
5include_directories(${LLVM_MAIN_SRC_DIR}/../libunwind/include)
6
7add_lld_library(lldMachO2
8  Arch/X86_64.cpp
9  UnwindInfoSection.cpp
10  Driver.cpp
11  DriverUtils.cpp
12  Dwarf.cpp
13  ExportTrie.cpp
14  InputFiles.cpp
15  InputSection.cpp
16  LTO.cpp
17  MergedOutputSection.cpp
18  ObjC.cpp
19  OutputSection.cpp
20  OutputSegment.cpp
21  SymbolTable.cpp
22  Symbols.cpp
23  SyntheticSections.cpp
24  Target.cpp
25  Writer.cpp
26
27  LINK_COMPONENTS
28  ${LLVM_TARGETS_TO_BUILD}
29  BinaryFormat
30  Core
31  DebugInfoDWARF
32  LTO
33  MC
34  Object
35  Option
36  Passes
37  Support
38  TextAPI
39
40  LINK_LIBS
41  lldCommon
42  ${LLVM_PTHREAD_LIB}
43
44  DEPENDS
45  MachOOptionsTableGen
46  ${tablegen_deps}
47  )
48