[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 06:17:19 PST 2016
mgorny created this revision.
mgorny added reviewers: whitequark, jpdeplaix.
mgorny added a subscriber: llvm-commits.
Clear cross-target test dependencies when using LLVM_OCAML_OUT_OF_TREE,
in order to make it possible to run check-llvm-bindings-ocaml without
rebuilding the whole LLVM.
https://reviews.llvm.org/D26580
Files:
test/CMakeLists.txt
Index: test/CMakeLists.txt
===================================================================
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -91,7 +91,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
@@ -110,16 +125,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.77721.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161112/fdf982bc/attachment.bin>
More information about the llvm-commits
mailing list