Skip to content

Commit b8b3fb8

Browse files
committed
[llvm] add a version of LLVMTestingSupport which links against static libs
1 parent 2767ff4 commit b8b3fb8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

llvm/lib/Testing/Support/CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ add_llvm_library(LLVMTestingSupport
2020

2121
target_link_libraries(LLVMTestingSupport PRIVATE llvm_gtest)
2222

23+
add_llvm_library(LLVMTestingSupportStatic
24+
Error.cpp
25+
SupportHelpers.cpp
26+
27+
${BUILDTREE_ONLY}
28+
29+
ADDITIONAL_HEADER_DIRS
30+
${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support
31+
32+
LINK_COMPONENTS
33+
Support
34+
35+
DISABLE_LLVM_LINK_LLVM_DYLIB
36+
)
37+
38+
target_link_libraries(LLVMTestingSupportStatic PRIVATE llvm_gtest)
39+
2340
# This is to avoid the error in gtest-death-test-internal.h
2441
# (150,16): error: 'Create' overrides a member function but
2542
# is not marked 'override' [-Werror,-Wsuggest-override]

0 commit comments

Comments
 (0)