mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 07:00:31 +01:00
meson: error out if platforms contains empty string
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110939 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
parent
d94fca5420
commit
ff77b0415b
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue