File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
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.128.9-3 "
5+ version = " 0.128.9-4 "
66authors = [" Mozilla" ]
77links = " mozjs"
88license.workspace = true
@@ -22,8 +22,10 @@ name = "mozjs_sys"
2222doctest = false
2323
2424[features ]
25+ default = [" jit" ]
2526debugmozjs = []
2627profilemozjs = []
28+ jit = []
2729jitspew = []
2830crown = []
2931oom_with_hook = []
Original file line number Diff line number Diff line change @@ -405,7 +405,11 @@ fn should_build_from_source() -> bool {
405405 } else if env:: var_os ( "CARGO_FEATURE_DEBUGMOZJS" ) . is_some ( ) {
406406 println ! ( "debug-mozjs feature is enabled. Building from source directly." ) ;
407407 true
408- } else {
408+ } else if !env:: var_os ( "CARGO_FEATURE_JIT" ) . is_some ( ) {
409+ println ! ( "jit feature is NOT enabled. Building from source directly." ) ;
410+ true
411+ }
412+ else {
409413 false
410414 }
411415}
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
@@ -63,7 +67,7 @@ ifneq ($(HOST),$(TARGET))
6367 endif
6468
6569 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
6771 # the same as the target name needed for the CXX toolchain.
6872 TARGET = aarch64-linux-gnu
6973 endif
You can’t perform that action at this time.
0 commit comments