The newly added external libraries have some issues with clang-cl.exe (from Nov26 Visual Studio 26) for arm64ec only. Pure arm64 is okay as it sets different flags. cl.exe is also fine as it seems to have workarounds (softintrin, etc.) for some of that stuff that clang-cl.exe is lacking. This is using cmake and vcvars.bat for the environment setup on a SnapDragon machine.
The problems are:
*mmintrin.h-Files get included in lunasvg and Opus and clang-cl has no softintrin.- libwebp wants to use non-existing
cpuidwhich cl.exe seems to emulate. - With my setup (clang 22.1.3) link-time-optimization (-flto as well as -flto=thin) prevents arm64ec builds from completing.
I think the solution is to add extra conditions that take the arm64 codepath on these 3rdparty libraries on arm64ec and maybe turn off lto for arm64ec?