mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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 <wszqkzqk@qq.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37388>
This commit is contained in:
parent
ca1c9a3b82
commit
1ca87b2173
1 changed files with 1 additions and 3 deletions
|
|
@ -335,11 +335,9 @@ with_any_broadcom = [
|
||||||
with_broadcom_vk,
|
with_broadcom_vk,
|
||||||
].contains(true)
|
].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') \
|
with_intel_vk_rt = get_option('intel-rt') \
|
||||||
.disable_auto_if(not with_intel_vk) \
|
.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') \
|
error_message: 'Intel Ray Tracing requires 64-bit architectures') \
|
||||||
.allowed()
|
.allowed()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue