[Openmp-commits] [PATCH] D11763: Fix CMake build on Windows
Olga Malysheva
olga.malysheva at intel.com
Wed Aug 5 08:00:13 PDT 2015
omalyshe created this revision.
omalyshe added reviewers: ismail, openmp-commits, jlpeyton.
omalyshe added subscribers: omalyshe, openmp-commits.
Two symbols for the external debugger support were incorrectly exported when LIBOMP_USE_DEBUGGER=off.
http://reviews.llvm.org/D11763
Files:
cmake/LibompHandleFlags.cmake
src/dllexports
Index: src/dllexports
===================================================================
--- src/dllexports
+++ src/dllexports
@@ -182,10 +182,10 @@
%endif
-#if USE_DEBUGGER
+ %ifdef USE_DEBUGGER
__kmp_debugging DATA
__kmp_omp_debug_struct_info DATA
-#endif /* USE_DEBUGGER */
+ %endif
# Symbols for MS mutual detection:
_You_must_link_with_exactly_one_OpenMP_library DATA
Index: cmake/LibompHandleFlags.cmake
===================================================================
--- cmake/LibompHandleFlags.cmake
+++ cmake/LibompHandleFlags.cmake
@@ -212,6 +212,7 @@
libomp_append(gdflags_local "-D prof" PROFILE_LIBRARY)
libomp_append(gdflags_local "-D stub" STUBS_LIBRARY)
libomp_append(gdflags_local "-D HAVE_QUAD" LIBOMP_USE_QUAD_PRECISION)
+ libomp_append(gdflags_local "-D USE_DEBUGGER" LIBOMP_USE_DEBUGGER)
if(${LIBOMP_OMP_VERSION} GREATER 41 OR ${LIBOMP_OMP_VERSION} EQUAL 41)
libomp_append(gdflags_local "-D OMP_41")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11763.31352.patch
Type: text/x-patch
Size: 1048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150805/6126fbe3/attachment-0001.bin>
More information about the Openmp-commits
mailing list