https://bugs.winehq.org/show_bug.cgi?id=43944
--- Comment #9 from Martin Storsjö martin@martin.st --- (In reply to Austin English from comment #8)
Are you cross compiling that with msvc?
Yes, and I'm looking into supporting compiling it with llvm-mingw (a setup with clang+lld and mingw-w64, supporting both armv7 and aarch64).
I tried using Stefan's scripts but never got it to build for me. Could you share your project stuff on github maybe? :)
It's not much project stuff to share per se... For building with MSVC, I'm following some instructions I saw somewhere (in the wiki?) a few years ago; I can't find it right now, but it's basically like this:
- Copy the wine/include/wine subdirectory to a separate directory (to avoid adding the rest of the wine headers to the include path, when adding the surrounding directory to the include path) - Compile one individual test like this: cl -I/path/to/wine-test-include -DSTANDALONE -D_X86_ -D__ms_va_list=va_list -D__ms_va_start=va_start -D__ms_va_end=va_end -Dinline=__inline action.c
For arm64, I'm defining -D_ARM64_ instead of -D_X86_.