diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-07-08 01:33:54 +0400 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-07-08 01:40:12 +0400 |
commit | 3e5139fd2f2df5ef5f532266e5015be8b0033b48 (patch) | |
tree | 884b08fc0005f8b5beb762c019672677c2d47ac1 /configure | |
parent | c6843f40c8d83b6552bc4c856a5528e55dee5e65 (diff) |
Fix the Windows build
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
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) |