Make llvm-go test dependency optional.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 23 Oct 2014 19:51:40 +0000 (19:51 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 23 Oct 2014 19:51:40 +0000 (19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220503 91177308-0d34-0410-b5e6-96231b3b80d8

test/CMakeLists.txt

index 14e54b7..bdb5d79 100644 (file)
@@ -32,7 +32,6 @@ set(LLVM_TEST_DEPENDS
           llvm-dis
           llvm-dwarfdump
           llvm-extract
           llvm-dis
           llvm-dwarfdump
           llvm-extract
-          llvm-go
           llvm-link
           llvm-lto
           llvm-mc
           llvm-link
           llvm-lto
           llvm-mc
@@ -65,6 +64,10 @@ if(TARGET LLVMgold)
   set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
 endif()
 
   set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
 endif()
 
+if(TARGET llvm-go)
+  set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
+endif()
+
 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
   ${CMAKE_CURRENT_BINARY_DIR}
   PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
   ${CMAKE_CURRENT_BINARY_DIR}
   PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg