aboutsummaryrefslogtreecommitdiff
path: root/dependencies.py
diff options
context:
space:
mode:
Diffstat (limited to 'dependencies.py')
-rw-r--r--dependencies.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dependencies.py b/dependencies.py
index 5bb5dc4..91b7285 100644
--- a/dependencies.py
+++ b/dependencies.py
@@ -242,6 +242,8 @@ class ExternalProgram():
commands = first_line[2:].split('#')[0].strip().split()
if mesonlib.is_windows():
commands[0] = commands[0].split('/')[-1] # Windows does not have /usr/bin.
+ if commands[0] == 'env':
+ commands = commands[1:]
self.fullpath = commands + [trial]
except Exception:
pass