intel/compiler: Introduce backend_shader method to propagate IR changes to analysis...
[mesa.git] / meson.build
index 73ba1b2425396690634dfd280b076b9dba36a611..1484e7fec5d85a9b65ea6225009b594ac496a731 100644 (file)
@@ -1508,6 +1508,14 @@ if host_machine.system() == 'windows'
   endif
 else
   prog_bison = find_program('bison', required : with_any_opengl)
+
+  # Disable deprecated keyword warnings, since we have to use them for
+  # old-bison compat.  See discussion in
+  # https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2161
+  if meson.version().version_compare('>= 0.52.0') and find_program('bison', required : false, version : '> 2.3').found()
+    prog_bison = [prog_bison, '-Wno-deprecated']
+  endif
+
   prog_flex = find_program('flex', required : with_any_opengl)
 endif