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
This commit is contained in:
Jonathan Peyton 2015-08-06 15:16:54 +00:00
parent 192e1fa59d
commit 3c4dd1c9f1
2 changed files with 3 additions and 2 deletions

View File

@ -212,6 +212,7 @@ function(libomp_get_gdflags gdflags)
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()

View File

@ -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