Skip to content

Commit 3c4dd1c

Browse files
committedAug 6, 2015
Fix link error on Windows when LIBOMP_USE_DEBUGGER is off
Two symbols for the external debugger support were incorrectly exported when LIBOMP_USE_DEBUGGER=off. Differential Revision: http://reviews.llvm.org/D11763 llvm-svn: 244217
1 parent 192e1fa commit 3c4dd1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎openmp/runtime/cmake/LibompHandleFlags.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ function(libomp_get_gdflags gdflags)
212212
libomp_append(gdflags_local "-D prof" PROFILE_LIBRARY)
213213
libomp_append(gdflags_local "-D stub" STUBS_LIBRARY)
214214
libomp_append(gdflags_local "-D HAVE_QUAD" LIBOMP_USE_QUAD_PRECISION)
215+
libomp_append(gdflags_local "-D USE_DEBUGGER" LIBOMP_USE_DEBUGGER)
215216
if(${LIBOMP_OMP_VERSION} GREATER 41 OR ${LIBOMP_OMP_VERSION} EQUAL 41)
216217
libomp_append(gdflags_local "-D OMP_41")
217218
endif()

‎openmp/runtime/src/dllexports

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@
182182
%endif
183183

184184

185-
#if USE_DEBUGGER
185+
%ifdef USE_DEBUGGER
186186
__kmp_debugging DATA
187187
__kmp_omp_debug_struct_info DATA
188-
#endif /* USE_DEBUGGER */
188+
%endif
189189

190190
# Symbols for MS mutual detection:
191191
_You_must_link_with_exactly_one_OpenMP_library DATA

0 commit comments

Comments
 (0)
Please sign in to comment.