diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-07-07 23:33:54 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-07-07 23:40:12 +0200 |
commit | 3e5139fd2f2df5ef5f532266e5015be8b0033b48 (patch) | |
tree | 884b08fc0005f8b5beb762c019672677c2d47ac1 /configure | |
parent | c6843f40c8d83b6552bc4c856a5528e55dee5e65 (diff) | |
download | node-new-3e5139fd2f2df5ef5f532266e5015be8b0033b48.tar.gz |
Fix the Windows build
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |