[PATCH] D26580: [OCaml] Clear cross-target test deps when building out-of-tree
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 12 07:08:24 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL286720: [OCaml] Clear cross-target test deps when building out-of-tree (authored by mgorny).
Changed prior to commit:
https://reviews.llvm.org/D26580?vs=77721&id=77724#toc
Repository:
rL LLVM
https://reviews.llvm.org/D26580
Files:
llvm/trunk/test/CMakeLists.txt
Index: llvm/trunk/test/CMakeLists.txt
===================================================================
--- llvm/trunk/test/CMakeLists.txt
+++ llvm/trunk/test/CMakeLists.txt
@@ -92,7 +92,22 @@
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
endif()
+if(LLVM_BUILD_EXAMPLES)
+ list(APPEND LLVM_TEST_DEPENDS
+ Kaleidoscope-Ch3
+ Kaleidoscope-Ch4
+ Kaleidoscope-Ch5
+ Kaleidoscope-Ch6
+ Kaleidoscope-Ch7
+ )
+endif()
+
if(TARGET ocaml_llvm)
+ # Clear all non-OCaml cross-target dependencies when building out-of-tree.
+ if(LLVM_OCAML_OUT_OF_TREE)
+ set(LLVM_TEST_DEPENDS)
+ endif()
+
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS}
ocaml_llvm
ocaml_llvm_all_backends
@@ -111,16 +126,6 @@
)
endif()
-if(LLVM_BUILD_EXAMPLES)
- list(APPEND LLVM_TEST_DEPENDS
- Kaleidoscope-Ch3
- Kaleidoscope-Ch4
- Kaleidoscope-Ch5
- Kaleidoscope-Ch6
- Kaleidoscope-Ch7
- )
-endif()
-
add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})
set_target_properties(llvm-test-depends PROPERTIES FOLDER "Tests")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26580.77724.patch
Type: text/x-patch
Size: 1084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161112/3cd655a8/attachment.bin>
More information about the llvm-commits
mailing list