> The code weaver approach doesn’t sound like something like hat is accessible to small time people... did they have to build their own thunking layers?
It wasn't easy, no. They had to do two things:
1) Fork clang and extensions to C to support mixed 32-bit and 64-bit address spaces
2) Get a special code-signing entitlement from Apple allowing them to call the API to enable 32-bit code execution (not required if you are okay with disabling SIP)
Lots of technical details here: https://www.winehq.org/pipermail/wine-devel/2019-December/15...
Yeah, this is a monumental effort that few other than Codeweavers could replicate, and I believe they got some help from Apple engineering to do it.
They've open sourced their code, but they aren't upstreaming it into mainstream Wine – having to use a forked C compiler is just a bit too much.