pan/midgard: Add address analysis framework
[mesa.git] / meson.build
index fb037d760ca1ae943637a05b1d7d2f8ab981efb0..d69b17bb1579962f3e92f8335f1494df6a8779a7 100644 (file)
@@ -34,6 +34,10 @@ cpp = meson.get_compiler('cpp')
 
 null_dep = dependency('', required : false)
 
+if get_option('layout') != 'mirror'
+  error('`mirror` is the only build directory layout supported')
+endif
+
 # Arguments for the preprocessor, put these in a separate array from the C and
 # C++ (cpp in meson terminology) arguments since they need to be added to the
 # default arguments for both C and C++.
@@ -1504,6 +1508,12 @@ 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
+  prog_bison = [prog_bison, '-Wno-deprecated']
+
   prog_flex = find_program('flex', required : with_any_opengl)
 endif