Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2012-06-26 21:45:13 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-06-27 21:52:01 +0400
commit9e72b7b65c2726ea192326261be45f4bcda6a86c (patch)
tree27ebcdf7473c92839a06fdd5025df2a14cd82d24 /configure
parent0cdeb8ed9690dcad912996a37ac149c7e7622f64 (diff)
build: handle CC env var with spaces
For example: CC='ccache gcc' ./configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
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')