mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
meson: Combine duplicated c_args and cpp_args
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19185>
This commit is contained in:
parent
2626946490
commit
9e934ee068
1 changed files with 2 additions and 4 deletions
|
|
@ -432,8 +432,7 @@ if with_platform_android and get_option('platform-sdk-version') >= 29
|
|||
# By default the NDK compiler, at least, emits emutls references instead of
|
||||
# ELF TLS, even when building targeting newer API levels. Make it actually do
|
||||
# ELF TLS instead.
|
||||
c_args += '-fno-emulated-tls'
|
||||
cpp_args += '-fno-emulated-tls'
|
||||
c_cpp_args += '-fno-emulated-tls'
|
||||
endif
|
||||
|
||||
# -mtls-dialect=gnu2 speeds up non-initial-exec TLS significantly but requires
|
||||
|
|
@ -465,8 +464,7 @@ if not have_mtls_dialect
|
|||
"movq y@GOTPCREL(%rip), %rdx\n"
|
||||
"call *x@TLSCALL(%rax)\n"); }''', name: 'split TLSDESC')
|
||||
)
|
||||
c_args += '-mtls-dialect=gnu2'
|
||||
cpp_args += '-mtls-dialect=gnu2'
|
||||
c_cpp_args += '-mtls-dialect=gnu2'
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue