]> granicus.if.org Git - clang/commitdiff
[OPENMP] Make -fopenmp to turn on OpenMP support by default, clang part
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 10 Dec 2015 05:47:10 +0000 (05:47 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 10 Dec 2015 05:47:10 +0000 (05:47 +0000)
Patch turns on OpenMP support in clang by default after fixing OpenMP buildbots.
Differential Revision: http://reviews.llvm.org/D13803

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255223 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
docs/UsersManual.rst

index ba7926bd149e572283896ec5884270d3ac53c66c..bc1036ffe9f4f8beaa5894e4ec2de621e79d1bc2 100644 (file)
@@ -196,7 +196,7 @@ set(GCC_INSTALL_PREFIX "" CACHE PATH "Directory where gcc is installed." )
 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 536ab6dda75c7495c0d5c423ddfd097aab5517e7..3226014b41f38389700eef466a9bee6609178261 100644 (file)
@@ -1825,8 +1825,8 @@ directives, ``depend`` clause for ``#pragma omp task`` directive (except for
 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
 ---------------------------------