meson: Don't enable libunwind by in 'auto' mode on Android.

On Android we're expected to use their backtrace library.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7227>
This commit is contained in:
Eric Anholt 2020-10-19 13:47:58 -07:00 committed by Marge Bot
parent f2a27d72de
commit c4f8d421df
1 changed files with 1 additions and 1 deletions

View File

@ -1667,7 +1667,7 @@ elif _libunwind == 'false'
_libunwind = 'disabled'
warning('libunwind option "false" deprecated, please use "disabled" instead.')
endif
if _libunwind != 'disabled'
if _libunwind != 'disabled' and not with_platform_android
dep_unwind = dependency('libunwind', required : _libunwind == 'enabled')
if dep_unwind.found()
pre_args += '-DHAVE_LIBUNWIND'