Convert the error to warning for enabling OMPD in non-Linux platform
OMPD is enabled by default on Linux machines and disabled on others.
However, if explicitly enabled it throws an error and exit while configuring.
It is mentioned in Bug: https://bugs.llvm.org/show_bug.cgi?id=51121
This patch, instead of throwing error, disables OMPD support with a warning message,
so configuration can continue.
Reviewed By: @protze.joachim
Differential Revision: https://reviews.llvm.org/D106682
GitOrigin-RevId: 23eced9ead21c4282cc68c1e93016ad4433a12d6
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
index b3dbad4..7080f92 100644
--- a/runtime/CMakeLists.txt
+++ b/runtime/CMakeLists.txt
@@ -333,7 +333,8 @@
"OMPD-support?")
if(LIBOMP_OMPD_SUPPORT AND ((NOT LIBOMP_OMPT_SUPPORT) OR (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")))
- libomp_error_say("OpenMP Debug Interface(OMPD) requested but not available in this implementation")
+ libomp_warning_say("OpenMP Debug Interface(OMPD) requested but not available in this implementation")
+ set(LIBOMP_OMPD_SUPPORT FALSE)
endif()
# Error check hwloc support after config-ix has run