On Mon, Sep 28, 2020 at 12:55 AM Artur Ventura <[email protected]> wrote: > > Hi there > > I've been trying to compile and run v8 on a mac but I'm having problems. > > I used the basic compilation args.gn generated by `gn args > out.gn/x64.release.sample`: > > ``` > is_component_build = false > is_debug = true > target_cpu = "x64" > use_custom_libcxx = false > v8_monolithic = true > v8_use_external_startup_data = false > ``` > > However when I'm calling a native function in JS, FunctionCallbackInfo object > has the arguments in reverse. I've been looking into v8.h and it seems that > this is happening because V8_REVERSE_JSARGS is not defined. I've changed the > code just to force V8_REVERSE_JSARGS to be defined and it works. > > I'm pretty sure that either I'm missing an GN option, or less likely, there's > a bug on the mac compilation rules. > > Am I missing something? > > Artur
I assume you observe this when building your own project against V8? Make sure your project uses the same set of defines as V8. V8_REVERSE_JSARGS is one example but others that caused some fallout recently are V8_COMPRESS_POINTERS and V8_31BIT_SMIS_ON_64BIT_ARCH. -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc8mwENKeJKsC8RCRZui21_QXPurWAVgyycdD7O382xBdw%40mail.gmail.com.
