Skip to content

Commit

Permalink
chore(sys): remove outdated dylib symlink on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Aug 31, 2024
1 parent 1fa3f6e commit 3072279
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ort-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,6 @@ fn copy_libraries(lib_dir: &Path, out_dir: &Path) {
}
}

#[cfg(target_os = "linux")]
{
let main_dy = lib_dir.join("libonnxruntime.so");
let versioned_dy = out_dir.join(format!("libonnxruntime.so.{}", ONNXRUNTIME_VERSION));
if main_dy.exists() && !versioned_dy.exists() {
if versioned_dy.is_symlink() {
fs::remove_file(&versioned_dy).unwrap();
}
std::os::unix::fs::symlink(main_dy, versioned_dy).unwrap();
}
}

// If we had to fallback to copying files on Windows, break early to avoid copying to 3 different directories
if copy_fallback {
break;
Expand Down

0 comments on commit 3072279

Please sign in to comment.