[Openmp-commits] [PATCH] D35719: [CMake] Disable building libomptarget and add CMake switch

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jul 26 06:55:41 PDT 2017


This revision was automatically updated to reflect the committed changes.
Hahnfeld marked an inline comment as done.
Closed by commit rL309115: [CMake] Disable building libomptarget and add CMake switch (authored by Hahnfeld).

Changed prior to commit:
  https://reviews.llvm.org/D35719?vs=107849&id=108269#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35719

Files:
  openmp/trunk/CMakeLists.txt


Index: openmp/trunk/CMakeLists.txt
===================================================================
--- openmp/trunk/CMakeLists.txt
+++ openmp/trunk/CMakeLists.txt
@@ -4,9 +4,20 @@
 
 add_subdirectory(runtime)
 
+
+# The tests currently don't pass if the generic ELF plugin is built.
+# TODO: Fix the tests and enable libomptarget by default on supported
+#       architectures and platforms.
+set(ENABLE_LIBOMPTARGET OFF)
 # 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"))
+if (WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+  set(ENABLE_LIBOMPTARGET OFF)
+endif()
+
+option(OPENMP_ENABLE_LIBOMPTARGET "Enable building libomptarget for offloading."
+       ${ENABLE_LIBOMPTARGET})
+if (OPENMP_ENABLE_LIBOMPTARGET)
   add_subdirectory(libomptarget)
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35719.108269.patch
Type: text/x-patch
Size: 973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170726/1c4dc7f9/attachment.bin>


More information about the Openmp-commits mailing list