aboutsummaryrefslogtreecommitdiff
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-08-18 12:08:20 +0300
commit50fb7d37abc02b674b66071b51b1a2862fabb3cd (patch)
treed75a57c8f0726f772219979e00b624832038a01a /mesonbuild/backend/backends.py
parent62aabb5a8be90467603b1348d8ae4c0847bc5d1e (diff)
downloadmeson-50fb7d37abc02b674b66071b51b1a2862fabb3cd.zip
meson-50fb7d37abc02b674b66071b51b1a2862fabb3cd.tar.gz
meson-50fb7d37abc02b674b66071b51b1a2862fabb3cd.tar.bz2
Make all functionality invokable via the main Meson binary,
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 f967de0..4dbf41c 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)