commit | ecca5ef6c380cf837ce3f261631f19dd3f18f51a | [log] [tgz] |
---|---|---|
author | Eric Engestrom <eric@engestrom.ch> | Sat Feb 15 10:53:26 2020 +0000 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Feb 18 20:05:03 2020 +0000 |
tree | a2bdd4fde2feb00c310d06349bd2c1c02cdb021b | |
parent | 79788b8f7f07460af8467931501380e47b485e36 [diff] [blame] |
meson: explicitly disallow unsupported build directory layout 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>
diff --git a/meson.build b/meson.build index fb037d7..73ba1b2 100644 --- a/meson.build +++ b/meson.build
@@ -34,6 +34,10 @@ 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++.