darwin: Use the system libexpat

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4093

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8506>
This commit is contained in:
Jeremy Huddleston Sequoia
2021-01-14 10:08:07 -08:00
committed by Marge Bot
parent 8e2e637480
commit 00944f80e2

View File

@@ -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