Open brianGriifin114 opened 1 month ago
Try running cmake with -DSDL_LIBC=ON. This is the default for SDL3, which was where I was reporting it worked in #8759.
cmake -G "Visual Studio 17 2022" -A ARM64EC -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DSDL_LIBC=ON .. 2>&1
CMake Warning:
Manually-specified variables were not used by the project:
SDL_LIBC
I tried it, but the same problem occurs(setup success and build failed).Maybe it's because of the SDL version? I'm using SDL2.I can provide steps to reproduce if necessary.
In https://github.com/libsdl-org/SDL/pull/10312, ARM64EC detection is added and SDL_LIBC
defaults to true for arm64ec.
With this GitHub workflow patch, I can confirm it works.
For current SDL2 releases (that don't know how to detect arm64ec), configuring with -DSDL_LIBC=ON
should do the job.
I don't know why -DSDL_LIBC
is considered non-used: it's here in the cmake script.
I couldn't test the -A ARM64EC
integration because it is not available in current CMake versions.
Thanks for your answer. We will modify the build script soon and see if there are any problems.
Hi, we are the MSVC test team and we found that SDL build fails for arm64ec target architecture. here's a part of error info
It seems caused by incompatibilities in the libraries.However, I noticed the issue https://github.com/libsdl-org/SDL/issues/8759, which mentioned that it can be compiled successfully under arm64ec. Is there something wrong with my configuration? I attached the setup.log and build.log for reference. If you guys need any more information, please let me know. Thanks! Build (3).log Setup (1).log