Skip to content
Snippets Groups Projects
Commit 24d0e7ee authored by WÁNG Xuěruì's avatar WÁNG Xuěruì Committed by Eric Engestrom
Browse files

meson: Additionally probe -mtls-dialect=desc for TLSDESC support


Previously only `-mtls-dialect=gnu2` was probed, which was appropriate
for arm, x86 and x86_64, but not for newer architectures such as
aarch64, loongarch64 and riscv64 which all use `-mtls-dialect=desc`
instead. Because the driver option is not consistent across
architectures (and probably will not), try both variants and choose the
first one working.

While at it, rename "gnu2_*" variables to "tlsdesc_*" respectively, for
clarity.

Cc: mesa-stable
Reviewed-by: Icenowy Zheng's avatarIcenowy Zheng <uwu@icenowy.me>
Reviewed-by: default avatarYukari Chiba <i@0x7f.cc>
Reviewed-by: David Heidelberg's avatarDavid Heidelberg <david@ixit.cz>
Signed-off-by: default avatarWANG Xuerui <git@xen0n.name>
Part-of: <mesa/mesa!30599>
(cherry picked from commit cc2dbb8e)
parent 5a16eefb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment