From ff77b0415bf8a6540ec29663e093171aaeab18a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Tue, 18 Jun 2019 13:50:52 +0300 Subject: [PATCH] meson: error out if platforms contains empty string MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110939 Signed-off-by: Tapani Pälli Reviewed-by: Eric Engestrom --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index d8a48bd6994..31bb0dd04ea 100644 --- a/meson.build +++ b/meson.build @@ -278,6 +278,10 @@ with_platform_surfaceless = _platforms.contains('surfaceless') with_platforms = false if _platforms.length() != 0 and _platforms != [''] + # sanity check that list contains no empty strings + if _platforms.contains('') + error('Invalid argument list given to -Dplatforms, please fix.') + endif with_platforms = true egl_native_platform = _platforms[0] endif -- 2.30.2