projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c2276
)
[openmp] Fix building in debug mode with mingw
author
Martin Storsjö
<martin@martin.st>
Sun, 6 Nov 2022 22:57:07 +0000
(
00:57
+0200)
committer
Martin Storsjö
<martin@martin.st>
Fri, 11 Nov 2022 11:54:02 +0000
(13:54 +0200)
Mingw doesn't provide the _malloc_dbg/_free_dbg functions.
Differential Revision: https://reviews.llvm.org/D137743
openmp/runtime/src/kmp_wrapper_malloc.h
patch
|
blob
|
history
diff --git
a/openmp/runtime/src/kmp_wrapper_malloc.h
b/openmp/runtime/src/kmp_wrapper_malloc.h
index
c027e0b
..
1f75e88
100644
(file)
--- a/
openmp/runtime/src/kmp_wrapper_malloc.h
+++ b/
openmp/runtime/src/kmp_wrapper_malloc.h
@@
-154,7
+154,7
@@
#if KMP_DEBUG
-#if KMP_OS_WINDOWS && _DEBUG
+#if KMP_OS_WINDOWS && _DEBUG
&& !defined(__MINGW32__)
// KMP_DEBUG != _DEBUG. MS debug RTL is available only if _DEBUG is defined.
// Windows* OS has native memory debugging capabilities. Enable them.