From 2888e4c5df1893ab56a65840a5497df7b385f106 Mon Sep 17 00:00:00 2001 From: "Carson M." Date: Thu, 7 Nov 2024 09:41:43 -0600 Subject: [PATCH] attempt to fix aarch64 linux link --- ort-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ort-sys/build.rs b/ort-sys/build.rs index 62f356e..8f7abd0 100644 --- a/ort-sys/build.rs +++ b/ort-sys/build.rs @@ -215,7 +215,7 @@ fn prepare_libort_dir() -> (PathBuf, bool) { let static_configs: Vec<(PathBuf, PathBuf, PathBuf, Box PathBuf>)> = vec![ (lib_dir.join(&profile), lib_dir.join("lib"), lib_dir.join("_deps"), Box::new(|p: PathBuf, profile| p.join(profile))), (lib_dir.join(&profile), lib_dir.join("lib"), lib_dir.join(&profile).join("_deps"), Box::new(|p: PathBuf, _| p)), - (lib_dir.clone(), lib_dir.join("lib"), lib_dir.parent().unwrap().join("_deps"), Box::new(|p: PathBuf, _| p)), + (lib_dir.clone(), lib_dir.join("lib"), lib_dir.join("_deps"), Box::new(|p: PathBuf, _| p)), (lib_dir.join("onnxruntime"), lib_dir.join("onnxruntime").join("lib"), lib_dir.join("_deps"), Box::new(|p: PathBuf, _| p)), ]; for (lib_dir, extension_lib_dir, external_lib_dir, transform_dep) in static_configs {