Fix test failures introduced by PR #113697 (#116941)
[llvm-project.git] / llvm / tools / dsymutil / CMakeLists.txt
blobefe28bda68ebf1587e95009fc4875a13a48c2701
1 set(LLVM_TARGET_DEFINITIONS Options.td)
2 tablegen(LLVM Options.inc -gen-opt-parser-defs)
3 add_public_tablegen_target(DsymutilTableGen)
5 set(LLVM_LINK_COMPONENTS
6   AllTargetsCodeGens
7   AllTargetsDescs
8   AllTargetsInfos
9   AsmPrinter
10   CodeGen
11   CodeGenTypes
12   DWARFLinker
13   DWARFLinkerClassic
14   DWARFLinkerParallel
15   DebugInfoDWARF
16   MC
17   Object
18   Option
19   Remarks
20   Support
21   Target
22   TargetParser
23   )
25 add_llvm_tool(dsymutil
26   dsymutil.cpp
27   BinaryHolder.cpp
28   CFBundle.cpp
29   DebugMap.cpp
30   DwarfLinkerForBinary.cpp
31   MachODebugMapParser.cpp
32   MachOUtils.cpp
33   Reproducer.cpp
34   RelocationMap.cpp
36   DEPENDS
37   intrinsics_gen
38   ${tablegen_deps}
39   DsymutilTableGen
40   GENERATE_DRIVER
41   )
43 if(APPLE AND NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
44   target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation")
45 endif(APPLE AND NOT LLVM_TOOL_LLVM_DRIVER_BUILD)
47 # target_link_libraries(dsymutil PRIVATE ${LLVM_ATOMIC_LIB})