From: Jonathan Peyton Date: Fri, 5 Oct 2018 17:47:58 +0000 (+0000) Subject: [OpenMP] Fix KMP_DYNAMIC_LIB to be dependent on LIBOMP_ENABLE_SHARED X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f194033316256a590a2ebebdf1b336a0ee466e54;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/openmp/runtime/src/kmp_config.h.cmake b/openmp/runtime/src/kmp_config.h.cmake index 04fc52b..6b778ea 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