[Openmp-commits] [openmp] [openmp][testing] disable check targets if not building with clang (PR #71866)

Maksim Levental via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 9 17:55:46 PST 2023


================
@@ -65,6 +65,11 @@ else()
   else()
     set(OPENMP_FILECHECK_EXECUTABLE ${LLVM_RUNTIME_OUTPUT_INTDIR}/FileCheck)
   endif()
+  if (NOT TARGET "clang")
+    message(STATUS "Cannot find 'clang'.")
+    message(WARNING "The check targets will not be available!")
+    set(ENABLE_CHECK_TARGETS FALSE)
----------------
makslevental wrote:

```suggestion
    set(ENABLE_CHECK_TARGETS FALSE)
    set(OPENMP_ENABLE_LIBOMPTARGET OFF)
```

@shiltian would you accept someting like this (with an amended warning)?

https://github.com/llvm/llvm-project/pull/71866


More information about the Openmp-commits mailing list