Browse Source

build: handle CC env var with spaces

For example:

    CC='ccache gcc' ./configure
v0.8.7-release
Gabriel 13 years ago
committed by Ben Noordhuis
parent
commit
9e72b7b65c
  1. 2
      configure

2
configure

@ -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…
Cancel
Save