在 2025-4-19 17:08, Martin Storsjö 写道:
Oh, wow, that's nice! As msys2 on arm64 still is emulated x86_64 binaries, I wasn't aware that it actually does expose all this information. This is highly useful; I'll try to incorporate that.

With MSYS2 on Windows 11 on ARM, I get this

   ```
   CLANGARM64 ~
   $ uname -a
   MINGW64_NT-10.0-26120-ARM64 lhmouse-mate 3.6.1-0cfedd4f.x86_64 2025-04-12 
01:44 UTC x86_64 Msys
   ```

Mostly it's identical to x86_64, except the kernel name, so I think this 
suffices:

   ```
   case $(uname -s) in
     *-ARM64) echo "arm64" ;;
     *)       echo "not arm64" ;;
   esac
   ```



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to