aboutsummaryrefslogtreecommitdiff
path: root/openmp/runtime
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-11-07 00:57:07 +0200
committerMartin Storsjö <martin@martin.st>2022-11-11 13:54:02 +0200
commit3438ed8f7e6bb81dc61d9d3da18cf5662c206862 (patch)
tree2d242523b83e4aade4e37cbaf84bccc98c7366f1 /openmp/runtime
parent61c2276cb231f5cc5698c0bdd2e92d9ecfdefa16 (diff)
downloadllvm-3438ed8f7e6bb81dc61d9d3da18cf5662c206862.zip
llvm-3438ed8f7e6bb81dc61d9d3da18cf5662c206862.tar.gz
llvm-3438ed8f7e6bb81dc61d9d3da18cf5662c206862.tar.bz2
[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
Diffstat (limited to 'openmp/runtime')
-rw-r--r--openmp/runtime/src/kmp_wrapper_malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_wrapper_malloc.h b/openmp/runtime/src/kmp_wrapper_malloc.h
index c027e0b..1f75e88 100644
--- 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.