[Openmp-commits] [openmp] r298411 - [OpenMP] libomptarget: Disable on MacOS X

George Rokos via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 21 11:19:09 PDT 2017


Author: grokos
Date: Tue Mar 21 13:19:09 2017
New Revision: 298411

URL: http://llvm.org/viewvc/llvm-project?rev=298411&view=rev
Log:
[OpenMP] libomptarget: Disable on MacOS X

Disable compilation of libomptarget on MacOS X.

Differential Revision: https://reviews.llvm.org/D31055


Modified:
    openmp/trunk/CMakeLists.txt

Modified: openmp/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/CMakeLists.txt?rev=298411&r1=298410&r2=298411&view=diff
==============================================================================
--- openmp/trunk/CMakeLists.txt (original)
+++ openmp/trunk/CMakeLists.txt Tue Mar 21 13:19:09 2017
@@ -4,6 +4,9 @@ set(OPENMP_LLVM_TOOLS_DIR "" CACHE PATH
 
 add_subdirectory(runtime)
 
-if (NOT WIN32)
+# Currently libomptarget cannot be compiled on Windows or MacOS X.
+# Since the device plugins are only supported on Linux anyway,
+# there is no point in trying to compile libomptarget on other OSes.
+if (NOT (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
   add_subdirectory(libomptarget)
 endif()




More information about the Openmp-commits mailing list