diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-07-05 16:06:37 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-07-06 00:28:58 +0300 |
commit | 324c5b9aae4eeb548f208f389e71cd84d756d08a (patch) | |
tree | 44199d8d54fb622d1fc4e5a16367c77849ebd037 /mesonbuild/envconfig.py | |
parent | 041de5814f8624dffdccbf74c1a0c46d77d93e76 (diff) | |
download | meson-324c5b9aae4eeb548f208f389e71cd84d756d08a.zip meson-324c5b9aae4eeb548f208f389e71cd84d756d08a.tar.gz meson-324c5b9aae4eeb548f208f389e71cd84d756d08a.tar.bz2 |
check that compiler name is not blank or empty
pep8
Diffstat (limited to 'mesonbuild/envconfig.py')
-rw-r--r-- | mesonbuild/envconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index cec5059..011ab5d 100644 --- a/mesonbuild/envconfig.py +++ b/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 |