2017-08-01 08:33:58 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Object
|
2018-04-24 13:43:32 +08:00
|
|
|
Option
|
2017-08-01 08:33:58 +08:00
|
|
|
Support
|
|
|
|
MC
|
|
|
|
)
|
2018-04-24 13:43:32 +08:00
|
|
|
|
2018-05-08 03:32:09 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
|
|
|
|
tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(ObjcopyOptsTableGen)
|
2018-04-24 13:43:32 +08:00
|
|
|
|
2018-05-08 03:32:09 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS StripOpts.td)
|
|
|
|
tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(StripOptsTableGen)
|
2018-04-24 13:43:32 +08:00
|
|
|
|
2017-08-01 08:33:58 +08:00
|
|
|
add_llvm_tool(llvm-objcopy
|
|
|
|
llvm-objcopy.cpp
|
|
|
|
Object.cpp
|
2018-04-24 13:43:32 +08:00
|
|
|
DEPENDS
|
2018-05-08 03:32:09 +08:00
|
|
|
ObjcopyOptsTableGen
|
|
|
|
StripOptsTableGen
|
2017-08-01 08:33:58 +08:00
|
|
|
)
|
2017-11-03 05:43:32 +08:00
|
|
|
|
2018-05-08 03:32:09 +08:00
|
|
|
add_llvm_tool_symlink(llvm-strip llvm-objcopy)
|
|
|
|
|
2017-11-03 05:43:32 +08:00
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(objcopy llvm-objcopy)
|
2018-05-08 03:32:09 +08:00
|
|
|
add_llvm_tool_symlink(strip llvm-objcopy)
|
2017-11-03 05:43:32 +08:00
|
|
|
endif()
|