mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
ebcba7c93c
llvm-strip is supposed to be a drop-in replacement for binutils strip. To start the ball rolling this diff adds the initial bits for llvm-strip, more features will be added incrementally over time. Test plan: make check-all Differential revision: https://reviews.llvm.org/D46407 llvm-svn: 331663
30 lines
644 B
CMake
30 lines
644 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Object
|
|
Option
|
|
Support
|
|
MC
|
|
)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
|
|
tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
|
|
add_public_tablegen_target(ObjcopyOptsTableGen)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS StripOpts.td)
|
|
tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
|
|
add_public_tablegen_target(StripOptsTableGen)
|
|
|
|
add_llvm_tool(llvm-objcopy
|
|
llvm-objcopy.cpp
|
|
Object.cpp
|
|
DEPENDS
|
|
ObjcopyOptsTableGen
|
|
StripOptsTableGen
|
|
)
|
|
|
|
add_llvm_tool_symlink(llvm-strip llvm-objcopy)
|
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
add_llvm_tool_symlink(objcopy llvm-objcopy)
|
|
add_llvm_tool_symlink(strip llvm-objcopy)
|
|
endif()
|