meson: Allow mismatching RTTI for MSVC
authorJesse Natalie <jenatali@microsoft.com>
Mon, 27 Sep 2021 14:24:16 +0000 (07:24 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 19 Nov 2021 15:36:59 +0000 (15:36 +0000)
commitf9a46ad22a544bdc9c1c0d87ea69d43e215c630c
tree0288bb70100d26d46c40dc906bc136e06b626100
parentad8626741236c312b08fcdf445fd806cf46b628f
meson: Allow mismatching RTTI for MSVC

This might be safe to relax to all Windows compilers, but I didn't
test Clang or MinGW, so scoping to MSVC for now. For MSVC, this is
safe to mismatch, because the vftables are emitted into all objects
with "pick largest," and the definition with RTTI is larger than the
one without. This is different than the Itanium ABI, which only emits
one copy of the typeinfo in the object which defines the key method.

Acked-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13064>
meson.build