File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 22name = " mozjs_sys"
33description = " System crate for the Mozilla SpiderMonkey JavaScript engine."
44repository.workspace = true
5- version = " 0.140.5-2 "
5+ version = " 0.140.5-3 "
66authors = [" Mozilla" , " The Servo Project Developers" ]
77links = " mozjs"
88license.workspace = true
@@ -18,6 +18,7 @@ doctest = false
1818[features ]
1919debugmozjs = []
2020profilemozjs = []
21+ jit = []
2122jitspew = []
2223libz-sys = [" dep:libz-sys" ]
2324libz-rs = [" dep:libz-rs-sys" ]
Original file line number Diff line number Diff line change @@ -463,6 +463,9 @@ fn should_build_from_source() -> bool {
463463 } else if env:: var_os ( "CARGO_FEATURE_INTL" ) . is_none ( ) {
464464 println ! ( "intl feature is disabled. Building from source directly." ) ;
465465 true
466+ } else if !env:: var_os ( "CARGO_FEATURE_JIT" ) . is_some ( ) {
467+ println ! ( "jit feature is NOT enabled. Building from source directly." ) ;
468+ true
466469 } else {
467470 false
468471 }
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ CONFIGURE_FLAGS := \
1111 --disable-shared-js \
1212 --build-backends=RecursiveMake
1313
14+ ifeq (,$(CARGO_FEATURE_JIT))
15+ CONFIGURE_FLAGS += --disable-jit
16+ endif
17+
1418ifneq (,$(CARGO_FEATURE_JITSPEW))
1519 CONFIGURE_FLAGS += --enable-jitspew
1620endif
@@ -77,7 +81,7 @@ ifneq ($(HOST),$(TARGET))
7781 endif
7882
7983 ifeq (aarch64-unknown-linux-gnu,$(TARGET))
80- # Reset TARGET variable because aarch64 target name used by Rust is not
84+ # Reset TARGET variable because aarch64 target name used by Rust is not
8185 # the same as the target name needed for the CXX toolchain.
8286 TARGET = aarch64-linux-gnu
8387 endif
Original file line number Diff line number Diff line change 22name = " mozjs"
33description = " Rust bindings to the Mozilla SpiderMonkey JavaScript engine."
44repository.workspace = true
5- version = " 0.14.1 "
5+ version = " 0.14.2 "
66authors = [" The Servo Project Developers" ]
77license.workspace = true
88edition.workspace = true
@@ -11,9 +11,10 @@ edition.workspace = true
1111doctest = false
1212
1313[features ]
14- default = [" libz-sys" , " intl" ]
14+ default = [" jit " , " libz-sys" , " intl" ]
1515debugmozjs = [" mozjs_sys/debugmozjs" ]
1616profilemozjs = [" mozjs_sys/profilemozjs" ]
17+ jit = [' mozjs_sys/jit' ]
1718jitspew = [" mozjs_sys/jitspew" ]
1819libz-sys = [" mozjs_sys/libz-sys" ]
1920libz-rs = [" mozjs_sys/libz-rs" ]
You can’t perform that action at this time.
0 commit comments