Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2022-11-07 01:57:07 +0300
committerMartin Storsjö <martin@martin.st>2022-11-11 14:54:02 +0300
commit3438ed8f7e6bb81dc61d9d3da18cf5662c206862 (patch)
tree2d242523b83e4aade4e37cbaf84bccc98c7366f1 /openmp
parent61c2276cb231f5cc5698c0bdd2e92d9ecfdefa16 (diff)
[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')
-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 c027e0b297d0..1f75e88a23b2 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.