Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
build: handle CC env var with spaces
For example:

    CC='ccache gcc' ./configure
  • Loading branch information
g2p authored and bnoordhuis committed Jun 27, 2012
1 parent 0cdeb8e commit 9e72b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -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')
Expand Down

0 comments on commit 9e72b7b

Please sign in to comment.