From 324c5b9aae4eeb548f208f389e71cd84d756d08a Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Fri, 5 Jul 2019 16:06:37 -0400 Subject: [PATCH] check that compiler name is not blank or empty pep8 --- mesonbuild/envconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index cec50599e..011ab5d50 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