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:
parent
ff34e6c0b2
commit
68eea4818d
|
@ -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…
Reference in New Issue