2019-10-04 00:34:41 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS Options.td)
|
|
|
|
tablegen(LLVM Options.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(DsymutilTableGen)
|
|
|
|
|
2014-12-13 01:31:24 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2019-05-24 07:02:56 +08:00
|
|
|
AllTargetsCodeGens
|
|
|
|
AllTargetsDescs
|
|
|
|
AllTargetsInfos
|
2015-02-28 08:29:11 +08:00
|
|
|
AsmPrinter
|
2015-01-31 02:07:45 +08:00
|
|
|
DebugInfoDWARF
|
2019-12-21 00:23:31 +08:00
|
|
|
DWARFLinker
|
2015-02-28 08:29:11 +08:00
|
|
|
MC
|
2014-12-13 01:31:24 +08:00
|
|
|
Object
|
2019-12-06 21:04:16 +08:00
|
|
|
CodeGen
|
2019-10-04 00:34:41 +08:00
|
|
|
Option
|
2019-10-01 00:05:12 +08:00
|
|
|
Remarks
|
2014-12-13 01:31:24 +08:00
|
|
|
Support
|
2015-06-04 03:07:51 +08:00
|
|
|
Target
|
2014-12-13 01:31:24 +08:00
|
|
|
)
|
|
|
|
|
2018-03-18 19:38:41 +08:00
|
|
|
add_llvm_tool(dsymutil
|
2014-12-13 01:31:24 +08:00
|
|
|
dsymutil.cpp
|
2015-01-06 05:29:28 +08:00
|
|
|
BinaryHolder.cpp
|
2017-11-30 18:25:28 +08:00
|
|
|
CFBundle.cpp
|
2014-12-13 01:31:24 +08:00
|
|
|
DebugMap.cpp
|
2019-12-21 00:23:31 +08:00
|
|
|
DwarfLinkerForBinary.cpp
|
2014-12-13 01:31:24 +08:00
|
|
|
MachODebugMapParser.cpp
|
2015-08-06 02:27:44 +08:00
|
|
|
MachOUtils.cpp
|
2020-05-22 01:57:53 +08:00
|
|
|
Reproducer.cpp
|
2019-01-08 07:27:25 +08:00
|
|
|
SymbolMap.cpp
|
2016-11-19 10:02:46 +08:00
|
|
|
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
2019-10-04 00:34:41 +08:00
|
|
|
${tablegen_deps}
|
2014-12-13 01:31:24 +08:00
|
|
|
)
|
|
|
|
|
2018-03-01 07:00:50 +08:00
|
|
|
if(APPLE)
|
2018-03-18 19:38:41 +08:00
|
|
|
target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation")
|
2018-03-01 07:00:50 +08:00
|
|
|
endif(APPLE)
|
2020-02-18 06:26:59 +08:00
|
|
|
|
|
|
|
if(HAVE_CXX_ATOMICS_WITH_LIB OR HAVE_CXX_ATOMICS64_WITH_LIB)
|
|
|
|
target_link_libraries(dsymutil PRIVATE atomic)
|
|
|
|
endif()
|