From 68eea4818df3378a22dc91ffc00d3c750add29ba Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 20 Feb 2017 05:03:59 +0530 Subject: [PATCH] environment: Use shlex.split() to get AR from the env That way if the path has spaces, it won't get messed up. --- mesonbuild/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 9fdc7f4b4..405be0e21 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: