Skip to content

Commit

Permalink
fix(sys): more abseil lib fixes for master onnxruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Oct 18, 2024
1 parent 884c295 commit b0e7ebe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ort-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,15 @@ fn prepare_libort_dir() -> (PathBuf, bool) {
add_search_dir(transform_dep(external_lib_dir.join("abseil_cpp-build").join("absl").join("debugging"), &profile));
println!("cargo:rustc-link-lib=static=absl_symbolize");
println!("cargo:rustc-link-lib=static=absl_stacktrace");
add_search_dir(transform_dep(external_lib_dir.join("abseil_cpp-build").join("absl").join("log"), &profile));
let abseil_lib_log_dir = transform_dep(external_lib_dir.join("abseil_cpp-build").join("absl").join("log"), &profile);
add_search_dir(&abseil_lib_log_dir);
println!("cargo:rustc-link-lib=static=absl_log_globals");
println!("cargo:rustc-link-lib=static=absl_log_internal_format");
println!("cargo:rustc-link-lib=static=absl_log_internal_proto");
println!("cargo:rustc-link-lib=static=absl_log_internal_globals");
if abseil_lib_log_dir.join(platform_format_lib("absl_log_internal_check_op")).exists() {
println!("cargo:rustc-link-lib=static=absl_log_internal_check_op");
}
println!("cargo:rustc-link-lib=static=absl_log_internal_log_sink_set");
println!("cargo:rustc-link-lib=static=absl_log_sink");
println!("cargo:rustc-link-lib=static=absl_log_internal_message");
Expand Down

0 comments on commit b0e7ebe

Please sign in to comment.