Closed caracal7 closed 5 years ago
I'm not sure exactly why it's not working, but if you use an override for mozjs_sys and add --disable-icu
to https://github.com/servo/mozjs/blob/master/makefile.cargo#L6 then it should build.
I have Unknown option: --disable-icu
--- stderr
Traceback (most recent call last):
File "/Users/caracal/Desktop/mozjs-test/vendors/mozjs/mozjs/js/src/../../configure.py", line 132, in <module>
sys.exit(main(sys.argv))
File "/Users/caracal/Desktop/mozjs-test/vendors/mozjs/mozjs/js/src/../../configure.py", line 38, in main
sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
File "/Users/caracal/Desktop/mozjs-test/vendors/mozjs/mozjs/python/mozbuild/mozbuild/configure/__init__.py", line 477, in run
raise InvalidOptionError(msg)
mozbuild.configure.options.InvalidOptionError: Unknown option: --disable-icu
make: *** [maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', vendors/mozjs/build.rs:111:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
mozjs/makefile.cargo
# Default flags
CONFIGURE_FLAGS := \
--disable-icu \
--disable-jemalloc \
--disable-js-shell \
--disable-tests \
--disable-shared-js \
--build-backends=RecursiveMake \
--enable-posix-nspr-emulation
...
Ah, sorry, try --disable-intl
.
Anyway 🤗
raise InvalidOptionError(msg)
mozbuild.configure.options.InvalidOptionError: Unknown option: --disable-intl
make: *** [maybe-configure] Error 1
thread 'main' panicked at 'assertion failed: result.success()', vendors/mozjs/build.rs:111:5 ```
Ok, so it turns out I was thinking of --without-intl-api
(https://github.com/servo/mozjs/blob/99952b4e799a9b2d7647176d6f2d94d78e642b7e/makefile.cargo#L21).
Everything is working Thanks a lot)
OSX 10.13.16 High Sierra
Cargo.toml
main.rs
result