Skip to content

Commit b60273e

Browse files
committed
use only DEP_Z_ROOT if needed
1 parent b695c63 commit b60273e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mozjs-sys/build.rs

-4
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ fn build_spidermonkey(build_dir: &Path) {
221221
encoding_c_mem_include_dir.replace("\\", "/"),
222222
));
223223
cppflags.push(" ");
224-
// add zlib from libz-sys to include path
225-
if let Ok(zlib_include_dir) = env::var("DEP_Z_INCLUDE") {
226-
cppflags.push(format!("-I{} ", zlib_include_dir.replace("\\", "/")));
227-
}
228224
// add zlib.pc into pkg-config's search path
229225
// this is only needed when libz-sys builds zlib from source
230226
if let Ok(zlib_root_dir) = env::var("DEP_Z_ROOT") {

0 commit comments

Comments
 (0)