Skip to content

Commit b65b7de

Browse files
committed
workaround for windows/vulkan builds
1 parent a92e90b commit b65b7de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,14 @@ fn main() {
356356
let vulkan_lib_path = Path::new(&vulkan_path).join("Lib");
357357
println!("cargo:rustc-link-search={}", vulkan_lib_path.display());
358358
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+
// the issue is likely caused by nested cmake projects with ExternalProject_Add
362+
// and windows' FileTracker thingy not properly picking up the inherited dir config
363+
// ...either that, or it has to do with MSBuild FileTracker not respecting the path
364+
// limit configuration set in the windows registry. I'm not sure which, but this
365+
// makes my builds work.
366+
env::set_var("TrackFileAccess", "false");
359367
}
360368
TargetOs::Linux => {
361369
println!("cargo:rustc-link-lib=vulkan");

0 commit comments

Comments
 (0)