Skip to content

Commit

Permalink
[Clang] Update Interpreter tests to use clang_target_link_libraries (l…
Browse files Browse the repository at this point in the history
…lvm#110154)

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 VitaNuo committed Oct 2, 2024
1 parent 44f8b4c commit dff9c79
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 dff9c79

Please sign in to comment.