meson: detect winflex/bison only on native win32
authorMichel Zou <xantares09@hotmail.com>
Wed, 10 Mar 2021 18:27:32 +0000 (19:27 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 10:38:36 +0000 (10:38 +0000)
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>

meson.build

index cd8b6e2..4ba0bd1 100644 (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.