Skip to content

Commit

Permalink
Merge pull request #88 from jguhlin/jg-branch-1
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
jguhlin authored Nov 22, 2024
2 parents 7437cb2 + 3ae28a0 commit 6e6b0c4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions minimap2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ fn configure(mut cc: &mut cc::Build) {

if let Some(x) = file.extension() {
if x == "c" {
println!("Compiling: {:?}", file);
cc.file(file);
}
}
Expand Down Expand Up @@ -131,8 +130,6 @@ fn compile() {
let _host = env::var("HOST").unwrap();
let _target = env::var("TARGET").unwrap();

println!("{}", _target);

println!("cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR");

println!("cargo:rustc-link-lib=m");
Expand Down Expand Up @@ -164,7 +161,6 @@ fn compile() {
println!("cargo:rustc-cfg=link_libz");

if let Some(include) = std::env::var_os("DEP_Z_INCLUDE") {
println!("-------------FOUND ZLIB INCLUDE: {:?}", include);
cc.include(include);
// Use env DEP_Z_ROOT to find the library
if let Some(lib) = std::env::var_os("DEP_Z_ROOT") {
Expand All @@ -174,11 +170,6 @@ fn compile() {
}
}

// Debugging, print out the entire environment
for (key, value) in std::env::vars() {
println!("{}: {}", key, value);
}

if let Ok(lib) = pkg_config::find_library("zlib") {
for path in &lib.include_paths {
cc.include(path);
Expand Down

0 comments on commit 6e6b0c4

Please sign in to comment.