diff options
author | Gabriel <g2p.code@gmail.com> | 2012-06-26 21:45:13 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-06-27 21:52:01 +0400 |
commit | 9e72b7b65c2726ea192326261be45f4bcda6a86c (patch) | |
tree | 27ebcdf7473c92839a06fdd5025df2a14cd82d24 /configure | |
parent | 0cdeb8ed9690dcad912996a37ac149c7e7622f64 (diff) |
build: handle CC env var with spaces
For example:
CC='ccache gcc' ./configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure index 8dd68847dd3..df18ba5e31b 100755 --- a/configure +++ b/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') |