msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.21k forks source link

Cross compiler from MINGW64/UCRT64 to MINGWARM64? #20840

Open ghost opened 4 months ago

ghost commented 4 months ago

Build for ARM64 on x86_64.

kmilos commented 4 months ago

You have CLANG64 already: https://www.msys2.org/docs/environments/

You could potentially use it as a cross-compiler?

I.e. what you suggested in https://github.com/msys2/MINGW-packages/issues/20839

ghost commented 4 months ago

Microsoft added support for Windows On ARM64 to GCC 15. When MSYS2 upgraded to GCC 15, I suggested to add a new environment which is MINGWARM64. This issue is about adding a GCC-based toolchain to cross compile for ARM64 from x86_64.

lazka commented 4 months ago

In theory we could start by creating a cross compiler using a gcc 15 snapshot, similar to https://packages.msys2.org/package/mingw-w64-cross-gcc

Andarwinux commented 4 months ago

Considering GCC's snail-like release schedule, this won't be generally available for a long time. And GCC has zero advantages over Clang.