meson: detect winflex/bison only on native win32

we want to detect the native bison when cross-compiling

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9375>
This commit is contained in:
Michel Zou
2021-03-10 19:27:32 +01:00
committed by Marge Bot
parent e6a0f243ea
commit 73a48600b4

View File

@@ -1708,7 +1708,7 @@ else
asan_c_args = ['-DBUILT_WITH_ASAN=0']
endif
if host_machine.system() == 'windows'
if build_machine.system() == 'windows'
# Prefer the winflexbison versions, they're much easier to install and have
# better windows support.