Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix the Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jul 7, 2012
1 parent c6843f4 commit 3e5139f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure
Expand Up @@ -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)
Expand Down

0 comments on commit 3e5139f

Please sign in to comment.