util/meson: don't build libmesa_util_clflush unless needed
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Fixes: efbecd93ba ("util: Build util/cache_ops_x86.c with -msse2")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38146>
This commit is contained in:
Eric Engestrom 2025-10-29 19:09:10 +01:00 committed by Marge Bot
parent ccf33664e8
commit 0fe0acd4c3

View file

@ -194,6 +194,7 @@ elif host_machine.cpu_family() in ['x86', 'x86_64'] and cc.get_id() != 'msvc'
include_directories : [inc_util],
c_args : [no_override_init_args, sse2_args],
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
libmesa_util_links += [libmesa_util_clflush]
if with_clflushopt