diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-27 18:27:56 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-27 18:27:56 +0200 |
| commit | 4c52b01a13ae23d4a814c9c50252ba0a9caf3f10 (patch) | |
| tree | 0f64388799749a205a0b26b64b11d2708b4a247a | |
| parent | f390f152e54a9a3e281c7726b11cbe91a64071aa (diff) | |
| download | meson-4c52b01a13ae23d4a814c9c50252ba0a9caf3f10.tar.gz | |
Special case shebang scripts that run with "env" on Windows.
| -rw-r--r-- | dependencies.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dependencies.py b/dependencies.py index 5bb5dc4f1..91b72856a 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 |
