Skip to content

Commit

Permalink
Fixed Additional CPPFLAGS (#493)
Browse files Browse the repository at this point in the history
Signed-off-by: Redfire <[email protected]>
  • Loading branch information
Redfire75369 authored Aug 12, 2024
1 parent c715ae4 commit ccd86bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mozjs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mozjs_sys"
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
repository.workspace = true
version = "0.128.0-6"
version = "0.128.0-7"
authors = ["Mozilla"]
links = "mozjs"
build = "build.rs"
Expand Down
1 change: 1 addition & 0 deletions mozjs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ fn build_spidermonkey(build_dir: &Path) {
}
if let Ok(include) = std::env::var("DEP_Z_INCLUDE") {
cppflags.push(format!("-I{include}").replace("\\", "/"));
cppflags.push(" ");
}
cppflags.push(get_cc_rs_env_os("CPPFLAGS").unwrap_or_default());
cmd.env("CPPFLAGS", cppflags);
Expand Down

0 comments on commit ccd86bc

Please sign in to comment.