mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
80963d31a3
This diff implements first bits for copying (without modification) MachO object files. Test plan: make check-all Differential revision: https://reviews.llvm.org/D54674 llvm-svn: 352944
40 lines
849 B
CMake
40 lines
849 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
|
|
Buffer.cpp
|
|
CopyConfig.cpp
|
|
llvm-objcopy.cpp
|
|
COFF/COFFObjcopy.cpp
|
|
COFF/Object.cpp
|
|
COFF/Reader.cpp
|
|
COFF/Writer.cpp
|
|
ELF/ELFObjcopy.cpp
|
|
ELF/Object.cpp
|
|
MachO/MachOObjcopy.cpp
|
|
MachO/MachOReader.cpp
|
|
MachO/MachOWriter.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()
|