check that compiler name is not blank or empty

pep8
pull/5611/head
Michael Hirsch, Ph.D 5 years ago committed by Jussi Pakkanen
parent 041de5814f
commit 324c5b9aae
  1. 4
      mesonbuild/envconfig.py

@ -341,8 +341,8 @@ This is probably wrong, it should always point to the native compiler.''' % evar
if command is not None:
command = shlex.split(command)
# Do not return empty string entries
if command is not None and len(command) == 0:
# Do not return empty or blank string entries
if command is not None and (len(command) == 0 or len(command[0].strip()) == 0):
return None
return command

Loading…
Cancel
Save