mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
No issue - Force C++ run-time type information on protobuf
Protobuf uses `dynamic_cast` on polymorphic types which cannot be inferred properly at compile-time, which can lead to unexpected behavior. As a code safety measure, enable C++ RTTI for protobuf.
This commit is contained in:
parent
6da047af1e
commit
75c0461123
1 changed files with 5 additions and 0 deletions
|
|
@ -130,6 +130,11 @@ elif CONFIG['_MSC_VER']:
|
|||
'-wd4099', # mismatched class/struct tags
|
||||
]
|
||||
|
||||
if CONFIG['_MSC_VER']:
|
||||
CXXFLAGS += [
|
||||
'-GR', # protobuf uses dynamic_cast on polymorphic types
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_USE_PTHREADS']:
|
||||
DEFINES['HAVE_PTHREAD'] = True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue