summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-07-07 23:33:54 +0200
committerBert Belder <bertbelder@gmail.com>2012-07-07 23:40:12 +0200
commit3e5139fd2f2df5ef5f532266e5015be8b0033b48 (patch)
tree884b08fc0005f8b5beb762c019672677c2d47ac1 /configure
parentc6843f40c8d83b6552bc4c856a5528e55dee5e65 (diff)
downloadnode-new-3e5139fd2f2df5ef5f532266e5015be8b0033b48.tar.gz
Fix the Windows build
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index d324696f40..5e60c55f46 100755
--- a/configure
+++ b/configure
@@ -264,7 +264,11 @@ def target_arch():
def compiler_version():
- proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
+ try:
+ proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
+ except WindowsError:
+ return (0, False)
+
is_clang = 'clang' in proc.communicate()[0].split('\n')[0]
proc = subprocess.Popen(CC.split() + ['-dumpversion'], stdout=subprocess.PIPE)