[llvm] r342593 - Fix the build when LLVM_TARGETS_TO_BUILD is empty.
Juergen Ributzka via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 19 14:36:26 PDT 2018
Author: ributzka
Date: Wed Sep 19 14:36:26 2018
New Revision: 342593
URL: http://llvm.org/viewvc/llvm-project?rev=342593&view=rev
Log:
Fix the build when LLVM_TARGETS_TO_BUILD is empty.
Using LLVMTestingSupport in the LLVM_LINK_COMPONENTS breaks the build when
LLVM_TARGETS_TO_BUILD is set to empty.
Libraries that depend on LLVMTestingSupport need to use
target_link_libraries(<target> PRIVATE LLVMTestingSupport) instead.
This required change was already commited by r341899 to fix another build
issue.
This fixes rdar://problem/44615064.
Modified:
llvm/trunk/unittests/XRay/CMakeLists.txt
Modified: llvm/trunk/unittests/XRay/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/XRay/CMakeLists.txt?rev=342593&r1=342592&r2=342593&view=diff
==============================================================================
--- llvm/trunk/unittests/XRay/CMakeLists.txt (original)
+++ llvm/trunk/unittests/XRay/CMakeLists.txt Wed Sep 19 14:36:26 2018
@@ -1,7 +1,6 @@
set(LLVM_LINK_COMPONENTS
Support
XRay
- TestingSupport
)
add_llvm_unittest(XRayTests
More information about the llvm-commits
mailing list