[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / tools / dsymutil / CMakeLists.txt
blob1efc58d19e92c203627e683580b356b39ed7349c
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   DebugInfoDWARF
11   DWARFLinker
12   MC
13   Object
14   CodeGen
15   Option
16   Remarks
17   Support
18   Target
19   )
21 add_llvm_tool(dsymutil
22   dsymutil.cpp
23   BinaryHolder.cpp
24   CFBundle.cpp
25   DebugMap.cpp
26   DwarfLinkerForBinary.cpp
27   MachODebugMapParser.cpp
28   MachOUtils.cpp
29   Reproducer.cpp
30   SymbolMap.cpp
32   DEPENDS
33   intrinsics_gen
34   ${tablegen_deps}
35   )
37 if(APPLE)
38   target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation")
39 endif(APPLE)
41 if(HAVE_CXX_ATOMICS_WITH_LIB OR HAVE_CXX_ATOMICS64_WITH_LIB)
42   target_link_libraries(dsymutil PRIVATE atomic)
43 endif()