Skip to content

Commit

Permalink
[Clang] Update Interpreter tests to use clang_target_link_libraries
Browse files Browse the repository at this point in the history
This will fix duplicate and missing linker symbol errors when using
CLANG_LINK_CLANG_DYLIB on windows and explicit visibility macros are used.
This is part of the work to enable LLVM_BUILD_LLVM_DYLIB and plugins on window.
  • Loading branch information
fsfod authored and vgvassilev committed Sep 27, 2024
1 parent 0df8880 commit a9d8655
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clang/unittests/Interpreter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ add_clang_unittest(ClangReplInterpreterTests

EXPORT_SYMBOLS
)
target_link_libraries(ClangReplInterpreterTests PUBLIC

target_link_libraries(ClangReplInterpreterTests PUBLIC LLVMTestingSupport)

clang_target_link_libraries(ClangReplInterpreterTests PRIVATE
clangAST
clangBasic
clangInterpreter
clangFrontend
clangSema
LLVMTestingSupport
)

# Exceptions on Windows are not yet supported.
Expand Down

0 comments on commit a9d8655

Please sign in to comment.