Skip to content

Commit

Permalink
maybe fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jul 18, 2024
1 parent 2f53fb9 commit 837cc9f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ fn main() {
config
.define("BUILD_SHARED_LIBS", "OFF")
.define("CMAKE_BUILD_TYPE", "Release")
.static_crt(true);
.static_crt(true)
.no_build_target(true);
let dst = config.build();

println!("cargo:rustc-link-search=native={}/build", dst.display());
println!("cargo:rustc-link-search=native={}/lib", dst.display());
println!(
"cargo:rustc-link-search=native={}",
dst.join("build").display()
);
println!(
"cargo:rustc-link-search=native={}",
dst.join("lib").display()
);

let lib_path = dst.join("build").join("lib");
println!("cargo:rustc-link-search=native={}", lib_path.display());
}

println!("cargo:rustc-link-lib=static=LIEF");
Expand Down

0 comments on commit 837cc9f

Please sign in to comment.