[Openmp-commits] [PATCH] D11763: Fix CMake build on Windows

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 6 08:17:36 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL244217: Fix link error on Windows when LIBOMP_USE_DEBUGGER is off (authored by jlpeyton).

Changed prior to commit:
  http://reviews.llvm.org/D11763?vs=31352&id=31449#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11763

Files:
  openmp/trunk/runtime/cmake/LibompHandleFlags.cmake
  openmp/trunk/runtime/src/dllexports

Index: openmp/trunk/runtime/src/dllexports
===================================================================
--- openmp/trunk/runtime/src/dllexports
+++ openmp/trunk/runtime/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: openmp/trunk/runtime/cmake/LibompHandleFlags.cmake
===================================================================
--- openmp/trunk/runtime/cmake/LibompHandleFlags.cmake
+++ openmp/trunk/runtime/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.31449.patch
Type: text/x-patch
Size: 1174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150806/a182f99a/attachment.bin>


More information about the Openmp-commits mailing list