File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 2
2
name = " mozjs_sys"
3
3
description = " System crate for the Mozilla SpiderMonkey JavaScript engine."
4
4
repository.workspace = true
5
- version = " 0.128.13-0 "
5
+ version = " 0.128.13-1 "
6
6
authors = [" Mozilla" ]
7
7
links = " mozjs"
8
8
license.workspace = true
@@ -22,8 +22,10 @@ name = "mozjs_sys"
22
22
doctest = false
23
23
24
24
[features ]
25
+ default = [" jit" ]
25
26
debugmozjs = []
26
27
profilemozjs = []
28
+ jit = []
27
29
jitspew = []
28
30
crown = []
29
31
oom_with_hook = []
Original file line number Diff line number Diff line change @@ -405,6 +405,9 @@ fn should_build_from_source() -> bool {
405
405
} else if env:: var_os ( "CARGO_FEATURE_DEBUGMOZJS" ) . is_some ( ) {
406
406
println ! ( "debug-mozjs feature is enabled. Building from source directly." ) ;
407
407
true
408
+ } else if !env:: var_os ( "CARGO_FEATURE_JIT" ) . is_some ( ) {
409
+ println ! ( "jit feature is NOT enabled. Building from source directly." ) ;
410
+ true
408
411
} else {
409
412
false
410
413
}
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ CONFIGURE_FLAGS := \
11
11
--disable-shared-js \
12
12
--build-backends=RecursiveMake
13
13
14
+ ifeq (,$(CARGO_FEATURE_JIT))
15
+ CONFIGURE_FLAGS += --disable-jit
16
+ endif
17
+
14
18
ifneq (,$(CARGO_FEATURE_JITSPEW))
15
19
CONFIGURE_FLAGS += --enable-jitspew
16
20
endif
@@ -63,7 +67,7 @@ ifneq ($(HOST),$(TARGET))
63
67
endif
64
68
65
69
ifeq (aarch64-unknown-linux-gnu,$(TARGET))
66
- # Reset TARGET variable because aarch64 target name used by Rust is not
70
+ # Reset TARGET variable because aarch64 target name used by Rust is not
67
71
# the same as the target name needed for the CXX toolchain.
68
72
TARGET = aarch64-linux-gnu
69
73
endif
Original file line number Diff line number Diff line change 2
2
name = " mozjs"
3
3
description = " Rust bindings to the Mozilla SpiderMonkey JavaScript engine."
4
4
repository.workspace = true
5
- version = " 0.14.1 "
5
+ version = " 0.14.2 "
6
6
authors = [" The Servo Project Developers" ]
7
7
license.workspace = true
8
8
edition.workspace = true
@@ -12,6 +12,7 @@ doctest = false
12
12
13
13
[features ]
14
14
debugmozjs = [' mozjs_sys/debugmozjs' ]
15
+ jit = [' mozjs_sys/jit' ]
15
16
jitspew = [' mozjs_sys/jitspew' ]
16
17
profilemozjs = [' mozjs_sys/profilemozjs' ]
17
18
crown = [' mozjs_sys/crown' ]
You can’t perform that action at this time.
0 commit comments