From 3e5139fd2f2df5ef5f532266e5015be8b0033b48 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 7 Jul 2012 23:33:54 +0200 Subject: [PATCH] Fix the Windows build --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)