From:  Jan de Mooij <jdemooij@mozilla.com>
Date:  05 Jun 2019 01:22:57 Hong Kong Time
Newsgroup:  news.mozilla.org/mozilla.dev.tech.js-engine.internals
Subject:  

Re: Can SpiderMonkey build without NSPR on Windows?

NNTP-Posting-Host:  63.245.210.105

On Tue, Jun 4, 2019 at 5:48 PM Steve Fink  wrote:

> The library loading stuff is used for ctypes as well, which is used by
> Firefox. It was the last difficult piece to remove.
>

True, but most shell and SpiderMonkey builds don't use --enable-ctypes so I
think it would still be a win to drop NSPR support for typical shell and
mozjs builds.

Jan


> On 6/4/19 1:34 AM, Jan de Mooij wrote:
> > Oh I forgot about the PR_LoadLibraryWithFlags call in JS shell code. We
> > should make that optional too...
> >
> > Jan
> >
> > On Tue, Jun 4, 2019 at 10:18 AM Jan de Mooij 
> wrote:
> >
> >> It's possible to build SpiderMonkey without depending on NSPR with
> >> --enable-posix-nspr-emulation, this uses the implementation in
> >> js/src/vm/PosixNSPR.{h,cpp} However these days we only depend on NSPR
> for
> >> memory mapped files in Wasm code (note that the PosixNSPR versions just
> >> crash because this API, JS::DeserializeWasmModule, is only used in the
> >> browser). We should either just remove the NSPR dependency completely or
> >> allow using PosixNSPR on all platforms.
> >>
> >> I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1556646 for this.
> >>
> >> Thanks,
> >> Jan
> >>
> >> On Tue, Jun 4, 2019 at 12:52 AM Josh Matthews 
> >> wrote:
> >>
> >>> If I remember correctly, there were at least attempts to remove NSPR
> from
> >>> the build on some platforms. Is that still possible on Windows in
> >>> particular?
> >>>
> >>> Cheers,
> >>> Josh
> >>> _______________________________________________
> >>> dev-tech-js-engine-internals mailing list
> >>> dev-tech-js-engine-internals@lists.mozilla.org
> >>> https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
> >>>
> > _______________________________________________
> > dev-tech-js-engine-internals mailing list
> > dev-tech-js-engine-internals@lists.mozilla.org
> > https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
>
>
>