From: Tapani Pälli Date: Tue, 18 Jun 2019 10:50:52 +0000 (+0300) Subject: meson: error out if platforms contains empty string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff77b0415bf8a6540ec29663e093171aaeab18a3;p=mesa.git meson: error out if platforms contains empty string Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110939 Signed-off-by: Tapani Pälli Reviewed-by: Eric Engestrom --- 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