[ASan] Do not instrument other runtime functions with `__asan_handle_no_return`
[llvm-core.git] / tools / llvm-objcopy / CMakeLists.txt
blob8406786e9e4eb58c81a5580421ccdc376fabe0d2
1 set(LLVM_LINK_COMPONENTS
2   Object
3   Option
4   Support
5   MC
6   )
8 set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
9 tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
10 add_public_tablegen_target(ObjcopyOptsTableGen)
12 set(LLVM_TARGET_DEFINITIONS StripOpts.td)
13 tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
14 add_public_tablegen_target(StripOptsTableGen)
16 add_llvm_tool(llvm-objcopy
17   Buffer.cpp
18   CopyConfig.cpp
19   llvm-objcopy.cpp
20   COFF/COFFObjcopy.cpp
21   COFF/Object.cpp
22   COFF/Reader.cpp
23   COFF/Writer.cpp
24   ELF/ELFObjcopy.cpp
25   ELF/Object.cpp
26   MachO/MachOObjcopy.cpp
27   MachO/MachOReader.cpp
28   MachO/MachOWriter.cpp
29   DEPENDS
30   ObjcopyOptsTableGen
31   StripOptsTableGen
32   )
34 add_llvm_tool_symlink(llvm-strip llvm-objcopy)
36 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
37   add_llvm_tool_symlink(objcopy llvm-objcopy)
38   add_llvm_tool_symlink(strip llvm-objcopy)
39 endif()