Mesa (master): meson: explicitly disallow unsupported build directory layout

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Feb 18 20:30:02 UTC 2020


Module: Mesa
Branch: master
Commit: ecca5ef6c380cf837ce3f261631f19dd3f18f51a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecca5ef6c380cf837ce3f261631f19dd3f18f51a

Author: Eric Engestrom <eric at engestrom.ch>
Date:   Sat Feb 15 10:53:26 2020 +0000

meson: explicitly disallow unsupported build directory layout

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2512
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Dylan Baker <dylan at 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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index fb037d760ca..73ba1b24253 100644
--- a/meson.build
+++ b/meson.build
@@ -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++.



More information about the mesa-commit mailing list