Skip to content

Commit

Permalink
Add js-confdefs.h as a file
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Nov 4, 2024
1 parent 952b08a commit 68a0da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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.3-3"
version = "0.128.3-4"
authors = ["Mozilla"]
links = "mozjs"
build = "build.rs"
Expand Down
6 changes: 1 addition & 5 deletions mozjs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -703,19 +703,15 @@ mod jsglue {
}

let confdefs_path: PathBuf = outdir.join("js/src/js-confdefs.h");
build.file(&confdefs_path);
let msvc = if build.get_compiler().is_like_msvc() {
build.flag(&format!("-FI{}", confdefs_path.to_string_lossy()));
build.define("WIN32", "");
build.flag("-Zi");
build.flag("-GR-");
build.flag("-std:c++17");
true
} else {
build.flag("-fPIC");
build.flag("-fno-rtti");
build.flag("-std=c++17");
build.flag("-include");
build.flag(&confdefs_path);
false
};

Expand Down

0 comments on commit 68a0da9

Please sign in to comment.