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:
authorBert Belder <bertbelder@gmail.com>2012-07-08 01:33:54 +0400
committerBert Belder <bertbelder@gmail.com>2012-07-08 01:40:12 +0400
commit3e5139fd2f2df5ef5f532266e5015be8b0033b48 (patch)
tree884b08fc0005f8b5beb762c019672677c2d47ac1 /configure
parentc6843f40c8d83b6552bc4c856a5528e55dee5e65 (diff)
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 d324696f40d..5e60c55f460 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)