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