Skip to content

Commit ae31f18

Browse files
authored
Check for MOZJS_ARCHIVE before Building from Source (servo#496)
Signed-off-by: Redfire <[email protected]>
1 parent 4f0724d commit ae31f18

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mozjs-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs_sys"
33
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
44
repository.workspace = true
5-
version = "0.128.0-8"
5+
version = "0.128.0-9"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"

mozjs-sys/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ fn should_build_from_source() -> bool {
123123
"Environment variable MOZJS_CREATE_ARCHIVE is set. Building from source directly."
124124
);
125125
true
126+
} else if env::var_os("MOZJS_ARCHIVE").is_some() {
127+
false
126128
} else if env::var_os("CARGO_FEATURE_DEBUGMOZJS").is_some() {
127129
println!("debug-mozjs feature is enabled. Building from source directly.");
128130
true

0 commit comments

Comments
 (0)