2020-04-03 02:54:05 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS Options.td)
|
|
|
|
tablegen(LLVM Options.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(MachOOptionsTableGen)
|
|
|
|
|
2020-08-21 04:05:13 +08:00
|
|
|
include_directories(${LLVM_MAIN_SRC_DIR}/../libunwind/include)
|
|
|
|
|
2020-04-03 02:54:05 +08:00
|
|
|
add_lld_library(lldMachO2
|
|
|
|
Arch/X86_64.cpp
|
2020-08-21 04:05:13 +08:00
|
|
|
UnwindInfoSection.cpp
|
2020-04-03 02:54:05 +08:00
|
|
|
Driver.cpp
|
2020-08-14 04:48:47 +08:00
|
|
|
DriverUtils.cpp
|
2020-04-30 06:42:19 +08:00
|
|
|
ExportTrie.cpp
|
2020-04-03 02:54:05 +08:00
|
|
|
InputFiles.cpp
|
|
|
|
InputSection.cpp
|
2020-10-27 10:18:29 +08:00
|
|
|
LTO.cpp
|
2020-05-02 07:29:06 +08:00
|
|
|
MergedOutputSection.cpp
|
2020-08-19 05:37:04 +08:00
|
|
|
ObjC.cpp
|
2020-05-02 07:29:06 +08:00
|
|
|
OutputSection.cpp
|
2020-04-03 02:54:05 +08:00
|
|
|
OutputSegment.cpp
|
|
|
|
SymbolTable.cpp
|
|
|
|
Symbols.cpp
|
2020-04-22 04:37:57 +08:00
|
|
|
SyntheticSections.cpp
|
2020-04-03 02:54:05 +08:00
|
|
|
Target.cpp
|
|
|
|
Writer.cpp
|
|
|
|
|
|
|
|
LINK_COMPONENTS
|
|
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
|
|
BinaryFormat
|
|
|
|
Core
|
2020-10-27 10:18:29 +08:00
|
|
|
LTO
|
|
|
|
MC
|
2020-04-03 02:54:05 +08:00
|
|
|
Object
|
|
|
|
Option
|
2020-10-27 10:18:29 +08:00
|
|
|
Passes
|
2020-04-03 02:54:05 +08:00
|
|
|
Support
|
2020-06-09 04:12:58 +08:00
|
|
|
TextAPI
|
2020-04-03 02:54:05 +08:00
|
|
|
|
|
|
|
LINK_LIBS
|
|
|
|
lldCommon
|
|
|
|
${LLVM_PTHREAD_LIB}
|
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
MachOOptionsTableGen
|
|
|
|
${tablegen_deps}
|
|
|
|
)
|