build: handle CC env var with spaces
For example: CC='ccache gcc' ./configure
This commit is contained in:
parent
0cdeb8ed96
commit
9e72b7b65c
2
configure
vendored
2
configure
vendored
@ -241,7 +241,7 @@ def target_arch():
|
||||
|
||||
def compiler_version():
|
||||
try:
|
||||
proc = subprocess.Popen([CC, '-v'], stderr=subprocess.PIPE)
|
||||
proc = subprocess.Popen(CC.split() + ['-v'], stderr=subprocess.PIPE)
|
||||
except OSError:
|
||||
return (False, False, None)
|
||||
lines = proc.communicate()[1].split('\n')
|
||||
|
Loading…
x
Reference in New Issue
Block a user