File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,17 @@ fn main() {
356
356
let vulkan_lib_path = Path :: new ( & vulkan_path) . join ( "Lib" ) ;
357
357
println ! ( "cargo:rustc-link-search={}" , vulkan_lib_path. display( ) ) ;
358
358
println ! ( "cargo:rustc-link-lib=vulkan-1" ) ;
359
+
360
+ // workaround for this error: "FileTracker : error FTK1011: could not create the new file tracking log file"
361
+ // it has to do with MSBuild FileTracker not respecting the path
362
+ // limit configuration set in the windows registry.
363
+ // I'm not sure why that's a thing, but this makes my builds work.
364
+ // (crates that depend on llama-cpp-rs w/ vulkan easily exceed the default PATH_MAX on windows)
365
+ env:: set_var ( "TrackFileAccess" , "false" ) ;
366
+ // since we disabled TrackFileAccess, we can now run into problems with parallel
367
+ // access to pdb files. /FS solves this.
368
+ config. cflag ( "/FS" ) ;
369
+ config. cxxflag ( "/FS" ) ;
359
370
}
360
371
TargetOs :: Linux => {
361
372
println ! ( "cargo:rustc-link-lib=vulkan" ) ;
You can’t perform that action at this time.
0 commit comments