summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2018-10-05 17:47:58 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2018-10-05 17:47:58 +0000
commitf194033316256a590a2ebebdf1b336a0ee466e54 (patch)
tree2d8d198204b02194bbb15d53b36ab98354acd0ba /openmp/runtime/src
parentf6a160a1023079f02e89917c6d7a74f90f12e23c (diff)
downloadbcm5719-llvm-f194033316256a590a2ebebdf1b336a0ee466e54.tar.gz
bcm5719-llvm-f194033316256a590a2ebebdf1b336a0ee466e54.zip
[OpenMP] Fix KMP_DYNAMIC_LIB to be dependent on LIBOMP_ENABLE_SHARED
The KMP_DYNAMIC_LIB guard was hard set to 1. This patch has the guard depend on CMake variable LIBOMP_ENABLE_SHARED. llvm-svn: 343866
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/kmp_config.h.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_config.h.cmake b/openmp/runtime/src/kmp_config.h.cmake
index 04fc52b10e5..6b778ea97f4 100644
--- a/openmp/runtime/src/kmp_config.h.cmake
+++ b/openmp/runtime/src/kmp_config.h.cmake
@@ -59,6 +59,8 @@
#cmakedefine01 STUBS_LIBRARY
#cmakedefine01 LIBOMP_USE_HWLOC
#define KMP_USE_HWLOC LIBOMP_USE_HWLOC
+#cmakedefine01 LIBOMP_ENABLE_SHARED
+#define KMP_DYNAMIC_LIB LIBOMP_ENABLE_SHARED
#define KMP_ARCH_STR "@LIBOMP_LEGAL_ARCH@"
#define KMP_LIBRARY_FILE "@LIBOMP_LIB_FILE@"
#define KMP_VERSION_MAJOR @LIBOMP_VERSION_MAJOR@
@@ -84,7 +86,6 @@
# define BUILD_I8 1
#endif
-#define KMP_DYNAMIC_LIB 1
#define KMP_NESTED_HOT_TEAMS 1
#define KMP_ADJUST_BLOCKTIME 1
#define BUILD_PARALLEL_ORDERED 1
OpenPOWER on IntegriCloud