From 4dd7ed18b9d13eb26e6e8d7fa7dcd890e2e06777 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 20 Aug 2025 12:14:59 -0400 Subject: [PATCH] meson: Disable unsafe_attr_outside_unsafe for now The #[unsafe(no_mangle)] decoration breaks cbindgen until 0.28 where they added support. Just disable that for now so that NIL still builds. Part-of: --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 94a3130f924..60a743c23d3 100644 --- a/meson.build +++ b/meson.build @@ -814,9 +814,11 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or '-Dnever_type_fallback_flowing_into_unsafe', '-Drust_2024_prelude_collisions', '-Dstatic_mut_refs', - '-Dunsafe_attr_outside_unsafe', '-Dunsafe_op_in_unsafe_fn', + # This requires cbindgen >= 0.28 + # '-Dunsafe_attr_outside_unsafe', + # 1.83+ # '-Dif_let_rescope', # '-Drust_2024_guarded_string_incompatible_syntax',