summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-14 22:33:43 +0000
committerZachary Turner <zturner@google.com>2017-06-14 22:33:43 +0000
commitdced7c9190921b84e60ea79e88261369415d3347 (patch)
tree4884f054a65660e290b0d8cce32ec567b8a666d1 /llvm/unittests/Support
parent2b5ed126a8c3e01bf2199a9f2658aaffb0afe127 (diff)
downloadbcm5719-llvm-dced7c9190921b84e60ea79e88261369415d3347.tar.gz
bcm5719-llvm-dced7c9190921b84e60ea79e88261369415d3347.zip
Don't include TestingSupport in LLVM_LINK_COMPONENTS.
Instead use target_link_libraries directly. Thanks to Juergen Ributzka for the suggestion, which fixes an issue when llvm is configured with no targets. llvm-svn: 305421
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/Support/CMakeLists.txt b/llvm/unittests/Support/CMakeLists.txt
index 348ffba95f2..e2a6561089b 100644
--- a/llvm/unittests/Support/CMakeLists.txt
+++ b/llvm/unittests/Support/CMakeLists.txt
@@ -1,6 +1,5 @@
set(LLVM_LINK_COMPONENTS
Support
- TestingSupport
)
add_llvm_unittest(SupportTests
@@ -73,6 +72,6 @@ add_llvm_unittest(SupportTests
set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
# ManagedStatic.cpp uses <pthread>.
-target_link_libraries(SupportTests ${LLVM_PTHREAD_LIB})
+target_link_libraries(SupportTests LLVMTestingSupport ${LLVM_PTHREAD_LIB})
add_subdirectory(DynamicLibrary)
OpenPOWER on IntegriCloud