Skip to content

Commit

Permalink
specify dylib in rustc-link-lib
Browse files Browse the repository at this point in the history
Signed-off-by: David Justice <[email protected]>
  • Loading branch information
devigned committed Nov 9, 2023
1 parent b12ce38 commit 273a975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/onnxruntime-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() -> Result<()> {
println!("Lib directory: {:?}", lib_dir);

// Tell cargo to tell rustc to link onnxruntime shared library.
println!("cargo:rustc-link-lib=onnxruntime");
println!("cargo:rustc-link-lib=dylib=onnxruntime");
println!("cargo:rustc-link-search=native={}", lib_dir.display());

println!("cargo:rerun-if-env-changed={}", ORT_RUST_ENV_STRATEGY);
Expand Down

0 comments on commit 273a975

Please sign in to comment.