Commit 34de7da6246cdfa6ff6f3d3c514583cddc0a10ec (D143436) introduced a dependency on the TargetRegistry in `getAnyTargetForTesting`. This is part of MC, which wasn't listed in clang/lib/Testing/CMakeLists.txt. This broke the -DBUILD_SHARED_LIBS=True builds.
31 lines
608 B
CMake
31 lines
608 B
CMake
# Don't include this target in LLVMExports. FIXME: is there a cleaner way?
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
|
|
# Not add_clang_library: this is not part of clang's public library interface.
|
|
# Unit tests should depend on this with target_link_libraries(), rather
|
|
# than with clang_target_link_libraries().
|
|
add_llvm_library(clangTesting
|
|
CommandLineArgs.cpp
|
|
TestAST.cpp
|
|
|
|
BUILDTREE_ONLY
|
|
|
|
LINK_COMPONENTS
|
|
MC
|
|
Support
|
|
)
|
|
|
|
clang_target_link_libraries(clangTesting
|
|
PRIVATE
|
|
clangAST
|
|
clangBasic
|
|
clangFrontend
|
|
clangLex
|
|
clangSerialization
|
|
)
|
|
|
|
target_link_libraries(clangTesting
|
|
PRIVATE
|
|
llvm_gtest
|
|
)
|