summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-06-18 13:50:52 +0300
committerTapani Pälli <[email protected]>2019-06-24 08:40:18 +0300
commitff77b0415bf8a6540ec29663e093171aaeab18a3 (patch)
treeb35928d9c5534f693d738657522bc136d3ce94cd /meson.build
parentd94fca54203edc0b7fece6aa2dc8703ad4e93c79 (diff)
meson: error out if platforms contains empty string
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110939 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
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