meson: Add --wrap-unsafe-ops to bindgen

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36849>
This commit is contained in:
Faith Ekstrand 2025-08-19 10:53:17 -04:00 committed by Marge Bot
parent 3b102368ac
commit 3d4b29a0f6

View file

@ -790,6 +790,8 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or
endif
bindgen_output_args = [
# This is needed to generate 2024-safe code
'--wrap-unsafe-ops',
# can't do anything about it anyway
'--raw-line', '#![allow(clippy::all)]',
'--raw-line', '#![allow(improper_ctypes)]',