[PATCH] D20882: [cmake] Fix builds with LLVM_ENABLE_PIC=0
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 09:35:46 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL271530: [cmake] Fix builds with LLVM_ENABLE_PIC=0 (authored by labath).
Changed prior to commit:
http://reviews.llvm.org/D20882?vs=59292&id=59402#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20882
Files:
llvm/trunk/test/CMakeLists.txt
Index: llvm/trunk/test/CMakeLists.txt
===================================================================
--- llvm/trunk/test/CMakeLists.txt
+++ llvm/trunk/test/CMakeLists.txt
@@ -43,7 +43,6 @@
llvm-extract
llvm-lib
llvm-link
- llvm-lto
llvm-mc
llvm-mcmarkup
llvm-nm
@@ -67,6 +66,10 @@
yaml2obj
)
+if(TARGET llvm-lto)
+ set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-lto)
+endif()
+
# If Intel JIT events are supported, depend on a tool that tests the listener.
if( LLVM_USE_INTEL_JITEVENTS )
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
@@ -80,7 +83,7 @@
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
endif()
-if(APPLE)
+if(TARGET LTO)
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20882.59402.patch
Type: text/x-patch
Size: 831 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160602/56c924c9/attachment.bin>
More information about the llvm-commits
mailing list