util/meson: don't build libmesa_util_clflushopt unless needed

Fixes: 555881e574 ("util/cache_ops: Add some cache flush helpers")
(cherry picked from commit ccf33664e8)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38268>
This commit is contained in:
Eric Engestrom 2025-10-29 19:09:10 +01:00 committed by Dylan Baker
parent f69d1abfcf
commit 46f0422165
2 changed files with 2 additions and 1 deletions

View file

@ -224,7 +224,7 @@
"description": "util/meson: don't build libmesa_util_clflushopt unless needed",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "555881e57499bc38f098dd5859edecdf6bdad2a2",
"notes": null

View file

@ -203,6 +203,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] + clflushopt_args,
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)
libmesa_util_links += [libmesa_util_clflushopt]
endif