diff options
author | Tapani Pälli <[email protected]> | 2019-06-18 13:50:52 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-06-24 08:40:18 +0300 |
commit | ff77b0415bf8a6540ec29663e093171aaeab18a3 (patch) | |
tree | b35928d9c5534f693d738657522bc136d3ce94cd /meson.build | |
parent | d94fca54203edc0b7fece6aa2dc8703ad4e93c79 (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.build | 4 |
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 |