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

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 9 21:47:13 PST 2015


Author: abataev
Date: Wed Dec  9 23:47:10 2015
New Revision: 255223

URL: http://llvm.org/viewvc/llvm-project?rev=255223&view=rev
Log:
[OPENMP] Make -fopenmp to turn on OpenMP support by default, clang part
Patch turns on OpenMP support in clang by default after fixing OpenMP buildbots.
Differential Revision: http://reviews.llvm.org/D13803

Modified:
    cfe/trunk/CMakeLists.txt
    cfe/trunk/docs/UsersManual.rst

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=255223&r1=255222&r2=255223&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Wed Dec  9 23:47:10 2015
@@ -196,7 +196,7 @@ set(GCC_INSTALL_PREFIX "" CACHE PATH "Di
 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

Modified: cfe/trunk/docs/UsersManual.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UsersManual.rst?rev=255223&r1=255222&r2=255223&view=diff
==============================================================================
--- cfe/trunk/docs/UsersManual.rst (original)
+++ cfe/trunk/docs/UsersManual.rst Wed Dec  9 23:47:10 2015
@@ -1825,8 +1825,8 @@ directives, ``depend`` clause for ``#pra
 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
 ---------------------------------




More information about the cfe-commits mailing list