From 1ca87b2173f41471eae34efc0027b2b0ff165ef5 Mon Sep 17 00:00:00 2001 From: Zhou Qiankang Date: Tue, 16 Sep 2025 11:41:24 +0800 Subject: [PATCH] meson: use pointer size for 64-bit detection instead of architecture names Replaced architecture-specific 64bit check (x86_64/aarch64) with generic void* size detection. Fixes build support for other 64bit archs by reusing existing sizeof_pointer variable. Signed-off-by: Zhou Qiankang Part-of: --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index f7ad909d77a..872ba3be69c 100644 --- a/meson.build +++ b/meson.build @@ -335,11 +335,9 @@ with_any_broadcom = [ with_broadcom_vk, ].contains(true) -intel_vk_can_rt = host_machine.cpu_family() == 'x86_64' or \ - host_machine.cpu_family() == 'aarch64' with_intel_vk_rt = get_option('intel-rt') \ .disable_auto_if(not with_intel_vk) \ - .disable_if(not intel_vk_can_rt, \ + .disable_if(sizeof_pointer != '8', \ error_message: 'Intel Ray Tracing requires 64-bit architectures') \ .allowed()