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:
Moonchild 2025-05-23 00:56:19 +02:00 committed by roytam1
commit 75c0461123

View file

@ -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