Fix build of Lex unit test with CLANG_DYLIB

If CLANG_LINK_CLANG_DYLIB, clang_target_link_libraries ignores all
indivial libraries and only links clang-cpp. As LLVMTestingSupport
is separate, pass it via target_link_libraries directly.
This commit is contained in:
Jonas Hahnfeld 2022-09-12 13:45:17 +02:00
parent d635695cf8
commit f0403c853b
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ clang_target_link_libraries(LexTests
clangLex clangLex
clangParse clangParse
clangSema clangSema
)
target_link_libraries(LexTests
PRIVATE
LLVMTestingSupport LLVMTestingSupport
) )