Skip to content

Commit

Permalink
use only DEP_Z_ROOT if needed (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev committed Mar 26, 2024
1 parent b695c63 commit 0172cf4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mozjs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ fn build_spidermonkey(build_dir: &Path) {
encoding_c_mem_include_dir.replace("\\", "/"),
));
cppflags.push(" ");
// add zlib from libz-sys to include path
if let Ok(zlib_include_dir) = env::var("DEP_Z_INCLUDE") {
cppflags.push(format!("-I{} ", zlib_include_dir.replace("\\", "/")));
}
// add zlib.pc into pkg-config's search path
// this is only needed when libz-sys builds zlib from source
if let Ok(zlib_root_dir) = env::var("DEP_Z_ROOT") {
Expand Down

0 comments on commit 0172cf4

Please sign in to comment.