aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/envconfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 03c6346..cec5059 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -340,6 +340,10 @@ This is probably wrong, it should always point to the native compiler.''' % evar
command = os.environ.get(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:
+ return None
return command
class Directories: