Skip to content

Commit 5658a27

Browse files
fsfodvgvassilev
authored andcommitted
[Clang] Update Interpreter tests to use clang_target_link_libraries
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.
1 parent 09cd5a8 commit 5658a27

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/unittests/Interpreter/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ add_clang_unittest(ClangReplInterpreterTests
1616

1717
EXPORT_SYMBOLS
1818
)
19-
target_link_libraries(ClangReplInterpreterTests PUBLIC
19+
20+
target_link_libraries(ClangReplInterpreterTests PUBLIC LLVMTestingSupport)
21+
22+
clang_target_link_libraries(ClangReplInterpreterTests PRIVATE
2023
clangAST
2124
clangBasic
2225
clangInterpreter
2326
clangFrontend
2427
clangSema
25-
LLVMTestingSupport
2628
)
2729

2830
# Exceptions on Windows are not yet supported.

0 commit comments

Comments
 (0)