diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-02-20 05:03:59 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-02-21 01:36:08 +0530 |
commit | 68eea4818df3378a22dc91ffc00d3c750add29ba (patch) | |
tree | 683283cf139ca85f6fd9d819ac9b8a7d1ad4bbf4 | |
parent | ff34e6c0b227448ae4f52ccb17b61128511cc269 (diff) | |
download | meson-68eea4818df3378a22dc91ffc00d3c750add29ba.zip meson-68eea4818df3378a22dc91ffc00d3c750add29ba.tar.gz meson-68eea4818df3378a22dc91ffc00d3c750add29ba.tar.bz2 |
environment: Use shlex.split() to get AR from the env
That way if the path has spaces, it won't get messed up.
-rw-r--r-- | mesonbuild/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 9fdc7f4..405be0e 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -680,7 +680,7 @@ class Environment: else: evar = 'AR' if evar in os.environ: - linker = os.environ[evar].strip() + linker = shlex.split(os.environ[evar]) elif isinstance(compiler, VisualStudioCCompiler): linker = self.vs_static_linker else: |