Skip to content

Add support for pc-windows-msvc target

Kacper Michajłow requested to merge kasper93/libplacebo:msvc into master

Depends on !419 (merged)

Works correctly (all demos and tests) with clang (x86_64-pc-windows-msvc) + lld-link. MSVC (cl) would require a lot more changes to port all gcc/clang specific things that are done in the codebase. But clang build with MS SDK is perfectly fine and allows to avoid using mingw, which has its own problems.

Unfortunately there is an issue in meson and this (https://github.com/mesonbuild/meson/pull/11715) patch is required to fix target directory and name of .lib file. It is not breaking, because everything compiles/link fine, but one needs to manually rename and move the files.

If there are any native Windows workers available, I can add a test for this build configuration, but would require MS build tools installed.

Merge request reports