environment: Use shlex.split() to get AR from the env

That way if the path has spaces, it won't get messed up.
This commit is contained in:
Nirbheek Chauhan 2017-02-20 05:03:59 +05:30
parent ff34e6c0b2
commit 68eea4818d
1 changed files with 1 additions and 1 deletions

View File

@ -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: