From 00944f80e269a4c79b75fed105cdb29d043b4497 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Thu, 14 Jan 2021 10:08:07 -0800 Subject: [PATCH] darwin: Use the system libexpat Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4093 Signed-off-by: Jeremy Huddleston Sequoia Reviewed-by: Dylan Baker Part-of: --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 932eb13..635dfc9 100644 --- a/meson.build +++ b/meson.build @@ -1408,7 +1408,9 @@ if dep_thread.found() and host_machine.system() != 'windows' pre_args += '-DHAVE_PTHREAD_SETAFFINITY' endif endif -if host_machine.system() != 'windows' +if host_machine.system() == 'darwin' + dep_expat = meson.get_compiler('c').find_library('expat') +elif host_machine.system() != 'windows' dep_expat = dependency('expat', fallback : ['expat', 'expat_dep'], required: not with_platform_android or with_any_broadcom or with_any_intel) else -- 2.7.4