Steven Wu b8c560f159
[CMake] Remove EXPORT_SYMBOLS_FOR_PLUGINS from #102138 (#102396)
Partially remove some of the changes from #102138 as
EXPORT_SYMBOLS_FOR_PLUGINS doesn't work on all the configurations.
2024-08-08 06:00:11 -07:00

46 lines
783 B
CMake

set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
BitWriter
Core
BinaryFormat
MC
Target
TransformUtils
Analysis
Passes
IRReader
Object
Option
Support
TargetParser
CodeGen
LTO
FrontendOffloading
)
set(LLVM_TARGET_DEFINITIONS LinkerWrapperOpts.td)
tablegen(LLVM LinkerWrapperOpts.inc -gen-opt-parser-defs)
add_public_tablegen_target(LinkerWrapperOpts)
if(NOT CLANG_BUILT_STANDALONE)
set(tablegen_deps intrinsics_gen LinkerWrapperOpts)
endif()
add_clang_tool(clang-linker-wrapper
ClangLinkerWrapper.cpp
DEPENDS
${tablegen_deps}
)
set(CLANG_LINKER_WRAPPER_LIB_DEPS
clangBasic
)
target_link_libraries(clang-linker-wrapper
PRIVATE
${CLANG_LINKER_WRAPPER_LIB_DEPS}
)
export_executable_symbols_for_plugins(clang-linker-wrapper)