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

That way if the path has spaces, it won't get messed up.
pull/1408/head
Nirbheek Chauhan 8 years ago
parent ff34e6c0b2
commit 68eea4818d
  1. 2
      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:

Loading…
Cancel
Save