meson: use add_project_arguments instead of global

The `add_global*_arguments` family of functions affect subprojects, and
are therefore generally discouraged from being used.

Fixes: a42c2293ab ("wsi: Metal support")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31267>
This commit is contained in:
Dylan Baker
2024-09-19 10:28:48 -07:00
committed by Marge Bot
parent e1a53d41c9
commit 3df03f100b

View File

@@ -19,7 +19,7 @@ project(
if host_machine.system() == 'darwin'
add_languages('objc', native : false)
add_global_arguments('-fobjc-arc', language : 'objc')
add_project_arguments('-fobjc-arc', language : 'objc')
endif
cc = meson.get_compiler('c')