I pulled the latest Chromium code and encountered an error while running GN.
[8116:1219/091541.155:ERROR:file_writer.cc(40)] CreateFile failed for path D:/code/chromium/src/out/debug_chrome/win_clang_x86_for_rust_host_build_tools/obj/build/rust/tests/test_rlib_crate/test_rlib_crate_associated_bin_test_rlib_crate_associated_bin_vunknown_build_script__rlib_win_clang_x86_for_rust_host_build_tools.vcxproj.filters: The system cannot find the path specified. (0x3)
This error has been persistent before, and I used enable_rust=false to work around it. However, with the latest code, this parameter no longer takes effect.
Furthermore, I have already enabled the long path setting locally.
https://source.chromium.org/gn/gn/+/master:src/gn/file_writer.cc;l=34;bpv=1?q=file_wr&ss=gn%2Fgn
I found that CreateFile does not support long paths, and to enable support, you need to use CreateFileW and UNC paths.