Re: How to create multiple contexts in different threads?

[email protected]
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
On Wednesday, March 30, 2016 at 3:35:52 PM UTC+2, Boris Zbarsky wrote:
> On 3/30/16 7:43 AM, Clément Vuchener wrote:
> > For my application, I am using cmake 3.x with the pkg-config module.
> > $ PKG_CONFIG_PATH=$HOME/opt/mozjs-38.2.1.rc0-debug/lib/pkgconfig/ pkg-config --cflags --libs js
> > -include /home/clement/opt/mozjs-38.2.1.rc0-debug/include/mozjs-/js/RequiredDefines.h -I/home/clement/opt/mozjs-38.2.1.rc0-debug/include/mozjs- -I/usr/include/nspr4 -L/home/clement/opt/mozjs-38.2.1.rc0-debug/lib -lmozjs-
> 
> Is DEBUG #defined when compiling your application?  It's defined when 
> compiling SpiderMonkey (you passed --enable-debug) and it's very 
> important that the DEBUG state of your application and SpiderMonkey 
> match, because there are things in the SpiderMonkey headers that are 
> #ifdef DEBUG.
> 
> -Boris

I tried adding -D flags used in the js shell compilation since evalInWorker works with it: -DDEBUG -DTRACING -DEXPORT_JS_API -DIMPL_MFBT -DAB_CD= -DNO_NSPR_10_SUPPORT -DMOZILLA_CLIENT. I also fixed my cmake script because the "-include [...]/RequiredDefines.h" from pkg-config was not added. But after all that, I still get the same assertion failures.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.