darwin: Use the system libexpat
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>
Thu, 14 Jan 2021 18:08:07 +0000 (10:08 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Jan 2021 19:37:32 +0000 (19:37 +0000)
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>

meson.build

index 932eb13..635dfc9 100644 (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