Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj
commit87b77cda38392ffe00e8add9bb0375a07abc3649
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 15 Nov 2019 13:14:42 +0000 (15 13:14 +0000)
committerMike Hommey <mh+mozilla@glandium.org>
Fri, 15 Nov 2019 13:14:42 +0000 (15 13:14 +0000)
treee9bafa4925f5d852fe94fb5c7b4d69dc1352999b
parentdb854fd2bcaa9522dabe3dfffe64c7396c0e57e3
Bug 1594998 - Make standalone SpiderMonkey use libxul-like panic. r=froydnj

This moves the parts of toolkit/library/rust/shared/lib.rs related to
panic hooking to a new mozglue subdirectory, which will be used for
things that can be statically linked to e.g. libxul, rather than in
a "shared library".

The panic hook is disabled when building spidermonkey via the mozjs_sys
crate.

Differential Revision: https://phabricator.services.mozilla.com/D52793

--HG--
extra : moz-landing-system : lando
16 files changed:
Cargo.lock
js/moz.configure
js/src/build.rs
js/src/make-source-package.sh
js/src/rust/shared/Cargo.toml
js/src/rust/shared/lib.rs
js/src/vm/Initialization.cpp
mozglue/static/README [new file with mode: 0644]
mozglue/static/rust/Cargo.toml [new file with mode: 0644]
mozglue/static/rust/build.rs [new file with mode: 0644]
mozglue/static/rust/lib.rs [new file with mode: 0644]
mozglue/static/rust/wrappers.cpp [new file with mode: 0644]
testing/mozbase/mozcrash/mozcrash/mozcrash.py
toolkit/library/rust/shared/Cargo.toml
toolkit/library/rust/shared/lib.rs
toolkit/xre/nsAppRunner.cpp