[OpenMP] libomptarget: Disable on MacOS X

Disable compilation of libomptarget on MacOS X.

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

llvm-svn: 298411
This commit is contained in:
George Rokos 2017-03-21 18:19:09 +00:00
parent 8a8f5f0f00
commit 00749e0fd4
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@ set(OPENMP_LLVM_TOOLS_DIR "" CACHE PATH "Path to LLVM tools for testing")
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()