From 078a0db50f48f883a6bba05c2eae73f585d6e362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Tue, 18 Jun 2019 13:50:52 +0300 Subject: [PATCH] meson: error out if egl_native_platform is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tapani Pälli --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index a2978117409..d6b381dba0a 100644 --- a/meson.build +++ b/meson.build @@ -280,6 +280,9 @@ with_platforms = false if _platforms.length() != 0 and _platforms != [''] with_platforms = true egl_native_platform = _platforms[0] + if egl_native_platform == '' + error('Invalid argument list given to -Dplatforms, please fix.') + endif endif _xlib_lease = get_option('xlib-lease') -- 2.20.1