meson: explicitly disallow unsupported build directory layout
authorEric Engestrom <eric@engestrom.ch>
Sat, 15 Feb 2020 10:53:26 +0000 (10:53 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Feb 2020 20:05:03 +0000 (20:05 +0000)
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2512
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3832>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3832>

meson.build

index fb037d760ca1ae943637a05b1d7d2f8ab981efb0..73ba1b2425396690634dfd280b076b9dba36a611 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++.