Fix the Windows build
authorBert Belder <bertbelder@gmail.com>
Sat, 7 Jul 2012 21:33:54 +0000 (23:33 +0200)
committerBert Belder <bertbelder@gmail.com>
Sat, 7 Jul 2012 21:40:12 +0000 (23:40 +0200)
configure

index d324696f40dab263702c31c7a4cae93181227971..5e60c55f4608ad1b1af28f8324feaae076f5895f 100755 (executable)
--- 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)