[clang][NFC] simplify the unset check in `ParseLabeledStatement` (#117430)
[llvm-project.git] / llvm / tools / llvm-objcopy / CMakeLists.txt
blob1c73a1781e801845d0d5e91849766fe4b02f530e
1 set(LLVM_LINK_COMPONENTS
2   Object
3   ObjCopy
4   Option
5   Support
6   TargetParser
7   MC
8   BinaryFormat
9   )
11 set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
12 tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
13 add_public_tablegen_target(ObjcopyOptsTableGen)
15 set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td)
16 tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs)
17 add_public_tablegen_target(InstallNameToolOptsTableGen)
19 set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td)
20 tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs)
21 add_public_tablegen_target(BitcodeStripOptsTableGen)
23 set(LLVM_TARGET_DEFINITIONS StripOpts.td)
24 tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
25 add_public_tablegen_target(StripOptsTableGen)
27 add_llvm_tool(llvm-objcopy
28   ObjcopyOptions.cpp
29   llvm-objcopy.cpp
30   DEPENDS
31   ObjcopyOptsTableGen
32   InstallNameToolOptsTableGen
33   StripOptsTableGen
34   GENERATE_DRIVER
35   )
37 add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy)
38 add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy)
39 add_llvm_tool_symlink(llvm-strip llvm-objcopy)
41 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
42   add_llvm_tool_symlink(objcopy llvm-objcopy)
43   add_llvm_tool_symlink(strip llvm-objcopy)
44 endif()
46 if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
47   add_llvm_tool_symlink(install_name_tool llvm-install-name-tool)
48   add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip)
49 endif()