summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHavard Graff <havard@pexip.com>2018-10-18 15:54:24 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-11-04 14:34:16 +0100
commitc44d14040fc3a848299f000f559513d2e4f96340 (patch)
treec31477756c3c4326f58f70a165419de4dcc263e1 /tools
parent4f0f1f46a0122f4089213cbb1cc60da470efac13 (diff)
downloadgobject-introspection-c44d14040fc3a848299f000f559513d2e4f96340.tar.gz
meson: add back /usr/bin/env to the python-cmd. Fixes #237
From nirbheek: "The shebang parsing goes like this: everything before the first space is the interpreter, everything after that is a single argument to that interpreter. So in meson, if the interpreter in the shebang is `env`, we ignore it and slurp the rest as the actual interpreter and parse it with shell syntax to handle spaces correctly. IIRC the py.exe python launcher on windows also knows that it should ignore /usr/bin/env and look at the rest to find the actual interpreter you want to use."
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/meson.build b/tools/meson.build
index b45ce668..3d5c0044 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -10,7 +10,7 @@ if get_option('doctool')
endif
if cc.get_id() == 'msvc'
- python_cmd = python.get_variable('prefix') + '\\python.exe'
+ python_cmd = '/usr/bin/env ' + python.get_variable('prefix') + '\\python.exe'
else
python_cmd = '/usr/bin/env python@0@'.format(python.language_version().split('.')[0])
endif