meson: use pointer size for 64-bit detection instead of architecture names
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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 <wszqkzqk@qq.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37388>
This commit is contained in:
Zhou Qiankang 2025-09-16 11:41:24 +08:00 committed by Marge Bot
parent ca1c9a3b82
commit 1ca87b2173

View file

@ -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()