comparison lld/MachO/CMakeLists.txt @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children 5f17cb93ff66
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
1 set(LLVM_TARGET_DEFINITIONS Options.td) 1 set(LLVM_TARGET_DEFINITIONS Options.td)
2 tablegen(LLVM Options.inc -gen-opt-parser-defs) 2 tablegen(LLVM Options.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(MachOOptionsTableGen) 3 add_public_tablegen_target(MachOOptionsTableGen)
4 4
5 include_directories(${LLVM_MAIN_SRC_DIR}/../libunwind/include)
6
5 add_lld_library(lldMachO2 7 add_lld_library(lldMachO2
8 Arch/ARM.cpp
9 Arch/ARM64.cpp
10 Arch/ARM64Common.cpp
11 Arch/ARM64_32.cpp
6 Arch/X86_64.cpp 12 Arch/X86_64.cpp
13 ConcatOutputSection.cpp
7 Driver.cpp 14 Driver.cpp
15 DriverUtils.cpp
16 Dwarf.cpp
8 ExportTrie.cpp 17 ExportTrie.cpp
9 InputFiles.cpp 18 InputFiles.cpp
10 InputSection.cpp 19 InputSection.cpp
11 MergedOutputSection.cpp 20 LTO.cpp
21 MapFile.cpp
22 MarkLive.cpp
23 ObjC.cpp
12 OutputSection.cpp 24 OutputSection.cpp
13 OutputSegment.cpp 25 OutputSegment.cpp
26 Relocations.cpp
14 SymbolTable.cpp 27 SymbolTable.cpp
15 Symbols.cpp 28 Symbols.cpp
16 SyntheticSections.cpp 29 SyntheticSections.cpp
17 Target.cpp 30 Target.cpp
31 UnwindInfoSection.cpp
18 Writer.cpp 32 Writer.cpp
19 33
20 LINK_COMPONENTS 34 LINK_COMPONENTS
21 ${LLVM_TARGETS_TO_BUILD} 35 ${LLVM_TARGETS_TO_BUILD}
22 BinaryFormat 36 BinaryFormat
37 BitReader
23 Core 38 Core
39 DebugInfoDWARF
40 LTO
41 MC
42 ObjCARCOpts
24 Object 43 Object
25 Option 44 Option
45 Passes
26 Support 46 Support
47 TextAPI
27 48
28 LINK_LIBS 49 LINK_LIBS
29 lldCommon 50 lldCommon
30 ${LLVM_PTHREAD_LIB} 51 ${LLVM_PTHREAD_LIB}
52 ${XAR_LIB}
31 53
32 DEPENDS 54 DEPENDS
33 MachOOptionsTableGen 55 MachOOptionsTableGen
34 ${tablegen_deps} 56 ${tablegen_deps}
35 ) 57 )
58
59 if(LLVM_HAVE_LIBXAR)
60 target_link_libraries(lldMachO2 PRIVATE ${XAR_LIB})
61 endif()