[PATCH] D13803: [OPENMP] Make -fopenmp to turn on OpenMP support by default, clang part

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 16 05:45:07 PDT 2015


ABataev created this revision.
ABataev added a reviewer: chandlerc.
ABataev added subscribers: hfinkel, fraggamuffin, ejstotzer, cfe-commits.

Patch turns on OpenMP support in clang by default after fixing OpenMP buildbots.

http://reviews.llvm.org/D13803

Files:
  CMakeLists.txt
  docs/UsersManual.rst

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -196,7 +196,7 @@
 set(DEFAULT_SYSROOT "" CACHE PATH
   "Default <path> to all compiler invocations for --sysroot=<path>." )
 
-set(CLANG_DEFAULT_OPENMP_RUNTIME "libgomp" CACHE STRING
+set(CLANG_DEFAULT_OPENMP_RUNTIME "libomp" CACHE STRING
   "Default OpenMP runtime used by -fopenmp.")
 
 set(CLANG_VENDOR "" CACHE STRING
Index: docs/UsersManual.rst
===================================================================
--- docs/UsersManual.rst
+++ docs/UsersManual.rst
@@ -1917,8 +1917,8 @@
 array sections), ``#pragma omp cancel`` and ``#pragma omp cancellation point``
 directives, and ``#pragma omp taskgroup`` directive.
 
-OpenMP support is disabled by default. Use :option:`-fopenmp=libomp` to enable
-it. Support for OpenMP can be disabled with :option:`-fno-openmp`.
+Use :option:`-fopenmp` to enable OpenMP. Support for OpenMP can be disabled with
+:option:`-fno-openmp`.
 
 Controlling implementation limits
 ---------------------------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13803.37574.patch
Type: text/x-patch
Size: 1083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151016/7ee2db3c/attachment.bin>


More information about the cfe-commits mailing list