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

Commit

Permalink
configure: don't fail if compiler_version() doesn't work
Browse files Browse the repository at this point in the history
This fixes the Windows build.
  • Loading branch information
piscisaureus committed Jun 26, 2012
1 parent 401ff10 commit 1044848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure
Expand Up @@ -243,17 +243,17 @@ def compiler_version():
try:
proc = subprocess.Popen([CC, '-v'], stderr=subprocess.PIPE)
except OSError:
return None
return (False, False, None)
lines = proc.communicate()[1].split('\n')
version_line = None
for i, line in enumerate(lines):
if 'version' in line:
version_line = line
if not version_line:
return None
return (False, False, None)
version = version_line.split("version")[1].strip().split()[0].split(".")
if not version:
return None
return (False, False, None)
return ('LLVM' in version_line, 'clang' in CC, tuple(version))

def configure_node(o):
Expand Down

0 comments on commit 1044848

Please sign in to comment.