I am unable to compile & build Skia on Windows anymore using Clang. When attempting to compile dynamically I get the error:
FAILED: pathkit.lib
"C:/dev/tools/llvm-project/llvm/build/Debug/bin/lld-link.exe" /lib /nologo /ignore:4221 /OUT:pathkit.lib @pathkit.lib.rsp
CreateProcess failed: The system cannot find the file specified.
ninja: fatal: ReadFile: The handle is invalid.
When compiling statically I get the error:
FAILED: expat.lib
"C:/dev/tools/llvm-project/llvm/build/Debug/bin/lld-link.exe" /lib /nologo /ignore:4221 /OUT:expat.lib @expat.lib.rsp
CreateProcess failed: The system cannot find the file specified.
ninja: fatal: ReadFile: The handle is invalid.
The gn gen command I have used is:
bin/gn gen out/debug --args='is_official_build=true skia_use_system_expat=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_system_icu=false skia_use_system_harfbuzz=false win_vc="C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC" target_cpu="x64" cc="clang" cxx="clang++" clang_win="C:/dev/tools/llvm-project/llvm/build/Debug" extra_cflags=["/MTd"]' --ide="vs"
What I do not understand is that on a different PC I have used Clang to build without issue. I have rebuilt Clang multiple times as well as started from scratch multiple times too and I can not find any reason that anything would be different. Any help is much appreciated as I'm at my wit's end.