[Openmp-commits] [openmp] 8eb6e26 - [openmp] Apply a mingw/64 bit codepath to arm64ec too (#209297)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 13 23:18:44 PDT 2026


Author: Martin Storsjö
Date: 2026-07-14T09:18:39+03:00
New Revision: 8eb6e260047bd2f69d9d2c1f0967ae59f7ec5374

URL: https://github.com/llvm/llvm-project/commit/8eb6e260047bd2f69d9d2c1f0967ae59f7ec5374
DIFF: https://github.com/llvm/llvm-project/commit/8eb6e260047bd2f69d9d2c1f0967ae59f7ec5374.diff

LOG: [openmp] Apply a mingw/64 bit codepath to arm64ec too (#209297)

When targeting arm64ec, neither KMP_ARCH_X86_64 nor KMP_ARCH_AARCH64 is
defined.

This fixes a compilation warning when building openmp for mingw/arm64ec.

Added: 
    

Modified: 
    openmp/runtime/src/kmp_utility.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp_utility.cpp b/openmp/runtime/src/kmp_utility.cpp
index bfa450c9ced26..dc839bd737b91 100644
--- a/openmp/runtime/src/kmp_utility.cpp
+++ b/openmp/runtime/src/kmp_utility.cpp
@@ -306,7 +306,8 @@ void __kmp_expand_file_name(char *result, size_t rlen, char *pattern) {
         case 'I':
         case 'i': {
           pid_t id = getpid();
-#if (KMP_ARCH_X86_64 || KMP_ARCH_AARCH64) && defined(__MINGW32__)
+#if (KMP_ARCH_X86_64 || KMP_ARCH_AARCH64 || KMP_ARCH_ARM64EC) &&               \
+    defined(__MINGW32__)
           snp_result = KMP_SNPRINTF(pos, end - pos + 1, "%0*lld", width, id);
 #else
           snp_result = KMP_SNPRINTF(pos, end - pos + 1, "%0*d", width, id);


        


More information about the Openmp-commits mailing list