Visual Studio 2019 includes ARM64 cross-compiler.
While our CI is not capable of running any tests on it, we can clean up code to remove the
hardcoded assumption that Windows equates Intel, perhaps such a cleanup could be useful in the future, when AMD64 ecosystem evolves
The cross-compilation works like this
Fix wolfssl - apply that patch
Hopefully it will be fixed soon in wolfssl proper.
Note , that setting -DCMAKE_SYSTEM_NAME is how CMake known that we're crosscompiling
-DIMPORT_EXECUTABLES=C:/path/to/sourcedir/x64/import_executables.cmake lets the native (x64) auxiliary executables run during build process, and -A ARM64 is CMake-ish way to chose the ARM64 cross-compiler.
To build MSI, WIX toolset version 3.14 is necessary, which is still under development, but betas are available. No other WIX version can handle ARM64 yet.