Skip to content

Commit 3438ed8

Browse files
committed
[openmp] Fix building in debug mode with mingw
Mingw doesn't provide the _malloc_dbg/_free_dbg functions. Differential Revision: https://reviews.llvm.org/D137743
1 parent 61c2276 commit 3438ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/runtime/src/kmp_wrapper_malloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154

155155
#if KMP_DEBUG
156156

157-
#if KMP_OS_WINDOWS && _DEBUG
157+
#if KMP_OS_WINDOWS && _DEBUG && !defined(__MINGW32__)
158158
// KMP_DEBUG != _DEBUG. MS debug RTL is available only if _DEBUG is defined.
159159

160160
// Windows* OS has native memory debugging capabilities. Enable them.

0 commit comments

Comments
 (0)