[Openmp-commits] [PATCH] D95689: [OpenMP] Disable tests if FileCheck is not available in in-tree building
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Feb 1 10:15:12 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf0129cc35ebd: [OpenMP] Disable tests if FileCheck is not available in in-tree building (authored by tianshilei1992).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95689/new/
https://reviews.llvm.org/D95689
Files:
openmp/cmake/OpenMPTesting.cmake
Index: openmp/cmake/OpenMPTesting.cmake
===================================================================
--- openmp/cmake/OpenMPTesting.cmake
+++ openmp/cmake/OpenMPTesting.cmake
@@ -58,7 +58,13 @@
set(OPENMP_LIT_ARGS "${DEFAULT_LIT_ARGS}" CACHE STRING "Options for lit.")
separate_arguments(OPENMP_LIT_ARGS)
else()
- set(OPENMP_FILECHECK_EXECUTABLE ${LLVM_RUNTIME_OUTPUT_INTDIR}/FileCheck)
+ if (NOT TARGET "FileCheck")
+ message(STATUS "Cannot find 'FileCheck'.")
+ message(WARNING "The check targets will not be available!")
+ set(ENABLE_CHECK_TARGETS FALSE)
+ else()
+ set(OPENMP_FILECHECK_EXECUTABLE ${LLVM_RUNTIME_OUTPUT_INTDIR}/FileCheck)
+ endif()
set(OPENMP_NOT_EXECUTABLE ${LLVM_RUNTIME_OUTPUT_INTDIR}/not)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95689.320514.patch
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210201/97aba3df/attachment.bin>
More information about the Openmp-commits
mailing list