From 3d4b29a0f6162cfe7f3b15d7b7711b371272bf6e Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Tue, 19 Aug 2025 10:53:17 -0400 Subject: [PATCH] meson: Add --wrap-unsafe-ops to bindgen Reviewed-by: Karol Herbst Part-of: --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 60a743c23d3..5e2b32554aa 100644 --- a/meson.build +++ b/meson.build @@ -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)]',