Whoops, I just discovered that the no_rtti config option itself has an
override. Set use_rtti=1, e.g.:

    tools/dev/v8gen.py x64.debug -- use_rtti=true

This seems to do the trick. I was looking for a way to remove the config
option from all the places that use it, but overriding the option itself is
obviously easier.

-Kenton

On Tue, Jul 11, 2017 at 12:24 PM, Kenton Varda <[email protected]>
wrote:

> Hi v8-users,
>
> My code which embeds V8 uses RTTI. My code also defines a custom subclass
> of v8::ArrayBuffer::Allocator. Since this subclass is defined in my code,
> RTTI type info is generated. This type info contains a reference to the
> type info for v8::ArrayBuffer::Allocator. However, since v8 is complied
> with -fno-rtti, there is no such type info emitted, and I end up with a
> linker error.
>
> I would therefore like to build V8 with RTTI enabled. The code bloat
> doesn't matter for my use case. However, it looks like there's currently no
> way for me to do this without editing build/config/BUILDCONFIG.gn, where
> no_rtti is unconditionally specified in default_compiler_configs.
>
> Is my understanding correct? If so, would the V8 maintainers accept a
> patch to make this configurable via a GN variable?
>
> Thanks,
> -Kenton
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to