[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL
[llvm-project.git] / lld / MachO / CMakeLists.txt
blobf8b1d45c489a3202bde08ea65f180eed2b790db2
1 set(LLVM_TARGET_DEFINITIONS Options.td)
2 tablegen(LLVM Options.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(MachOOptionsTableGen)
5 include_directories(${LLVM_MAIN_SRC_DIR}/../libunwind/include)
7 add_lld_library(lldMachO
8   Arch/ARM.cpp
9   Arch/ARM64.cpp
10   Arch/ARM64Common.cpp
11   Arch/ARM64_32.cpp
12   Arch/X86_64.cpp
13   ConcatOutputSection.cpp
14   Driver.cpp
15   DriverUtils.cpp
16   Dwarf.cpp
17   EhFrame.cpp
18   ExportTrie.cpp
19   ICF.cpp
20   InputFiles.cpp
21   InputSection.cpp
22   LTO.cpp
23   MapFile.cpp
24   MarkLive.cpp
25   ObjC.cpp
26   OutputSection.cpp
27   OutputSegment.cpp
28   Relocations.cpp
29   SectionPriorities.cpp
30   SymbolTable.cpp
31   Symbols.cpp
32   SyntheticSections.cpp
33   Target.cpp
34   UnwindInfoSection.cpp
35   Writer.cpp
37   LINK_COMPONENTS
38   ${LLVM_TARGETS_TO_BUILD}
39   BinaryFormat
40   BitReader
41   Core
42   DebugInfoDWARF
43   Demangle
44   LTO
45   MC
46   ObjCARCOpts
47   Object
48   Option
49   Passes
50   Support
51   TextAPI
53   LINK_LIBS
54   lldCommon
55   ${LLVM_PTHREAD_LIB}
56   ${XAR_LIB}
58   DEPENDS
59   MachOOptionsTableGen
60   ${tablegen_deps}
61   )
63 if(LLVM_HAVE_LIBXAR)
64   target_link_libraries(lldMachO PRIVATE ${XAR_LIB})
65 endif()