[Openmp-commits] [PATCH] D31055: [OpenMP] libomptarget: Disable on MacOS X

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 16 13:50:14 PDT 2017


grokos created this revision.
Herald added a subscriber: mgorny.

Compiling on MacOS X fails due to the darwin liner not supporting the `--version-script` option.

Currently, device plugins (cuda, genereic-elf-64) are only supported on Linux anyway, so there is no point in trying to compile libomptarget on other systems.

Thanks to Jack Howarth for reporting this issue.

Bugzilla no 32309 <http://bugs.llvm.org/show_bug.cgi?id=32309>.


Repository:
  rL LLVM

https://reviews.llvm.org/D31055

Files:
  CMakeLists.txt


Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -4,6 +4,9 @@
 
 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()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31055.92047.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170316/2d952e63/attachment.bin>


More information about the Openmp-commits mailing list