summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-08-15 20:05:56 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-09-13 23:05:11 +0300
commit40156e422a8810a5de1aae5d3b0728031c8777da (patch)
treecd4115cc0e2a77d8dfd8af1bff2bd3427f8e9f9c /mesonbuild/backend/backends.py
parentf5d530ef714bcbe72640a88ee8db9a041d88ce15 (diff)
downloadmeson-0.42-msi.tar.gz
Make all functionality invokable via the main Meson binary,0.42-msi
which can be a Windows .exe file.
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index f967de0c6..4dbf41c45 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -20,10 +20,11 @@ from .. import mlog
from .. import compilers
import json
import subprocess
-from ..mesonlib import MesonException, get_meson_script
+from ..mesonlib import MesonException
from ..mesonlib import get_compiler_for_source, classify_unity_sources
from ..compilers import CompilerArgs
from collections import OrderedDict
+import shlex
class CleanTrees:
'''
@@ -771,7 +772,8 @@ class Backend:
def run_postconf_scripts(self):
env = {'MESON_SOURCE_ROOT': self.environment.get_source_dir(),
'MESON_BUILD_ROOT': self.environment.get_build_dir(),
- 'MESONINTROSPECT': get_meson_script(self.environment, 'mesonintrospect')}
+ 'MESONINTROSPECT': ' '.join([shlex.quote(x) for x in self.environment.get_build_command() + ['introspect']]),
+ }
child_env = os.environ.copy()
child_env.update(env)