https://bugs.winehq.org/show_bug.cgi?id=56956
--- Comment #3 from cqwrteur euloanty@live.com --- Hi. I haven't checked what's causing regression for msvc.
Can you first use this with clang for cross compilation? My windows-msvc-sysroot project provides msvc libraries for clang to compile your code instead of msvc on linux.
https://github.com/trcrsired/windows-msvc-sysroot/tree/main
Also, please support me in this LLVM PR. https://github.com/llvm/llvm-project/pull/96417