mv .\subprojects\packagecache . rm -recurse -force .\subprojects\,.\builddir\ mkdir subprojects mv .\packagecache .\subprojects\ mkdir builddir cp wraps\*.wrap subprojects\ # clang doesn't actually work on Windows, it almost works but Catch2 fails to link against librt, look at https://mesonbuild.com/Builtin-options.html#compiler-options also there's a bug for it https://github.com/brechtsanders/winlibs_mingw/issues/127 # -fsafe-buffer-usage-suggestions # $env:CC="clang" # $env:CXX="clang++" # $env:CC_LD="lld" # $env:CXX_LD="lld" meson setup --default-library=static --prefer-static builddir