10 Feb
2026
10 Feb
'26
8:25 a.m.
Although we allow configuring `<target>_CC` variables to select a specific compiler for compilation, this is not currently propagated to winegcc or winebuild. As a result, linking and creation of static or import libraries uses default tools found on the PATH instead. My main use case is cross-compiling with a specific LLVM build without modifying PATH. With this change, it is enough to pass `--with-mingw=/path/to/clang`. Because we use clang to locate other tools like llvm-dlltool or llvm-ar via -print-prog-name, the rest of the LLVM toolchain from that path is picked up as well. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10070