0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 20:29:23 +01:00

Fix the Windows build

This commit is contained in:
Bert Belder 2012-07-07 23:33:54 +02:00
parent c6843f40c8
commit 3e5139fd2f

6
configure vendored
View File

@ -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)