1 include(GNUInstallDirs)
3 set(LLVM_LINK_COMPONENTS
4 ${LLVM_TARGETS_TO_BUILD}
20 set(LLVM_TARGET_DEFINITIONS LinkerWrapperOpts.td)
21 tablegen(LLVM LinkerWrapperOpts.inc -gen-opt-parser-defs)
22 add_public_tablegen_target(LinkerWrapperOpts)
24 if(NOT CLANG_BUILT_STANDALONE)
25 set(tablegen_deps intrinsics_gen LinkerWrapperOpts)
28 add_clang_executable(clang-linker-wrapper
29 ClangLinkerWrapper.cpp
36 set(CLANG_LINKER_WRAPPER_LIB_DEPS
40 add_dependencies(clang clang-linker-wrapper)
42 target_link_libraries(clang-linker-wrapper
44 ${CLANG_LINKER_WRAPPER_LIB_DEPS}
47 install(TARGETS clang-linker-wrapper RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")