Skip to content

Commit

Permalink
WIP: Stype per PEP-0008
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Budeanu committed Mar 4, 2016
1 parent 75709cc commit a25fd93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -454,19 +454,20 @@ def get_version_helper(cc, regexp):
'''
sys.exit()

match = re.search(regexp,
proc.communicate()[1])
match = re.search(regexp, proc.communicate()[1])

if match:
return match.group(2)
else:
return 0

def get_llvm_version(cc):
return get_version_helper(cc, r"(^clang version|based on LLVM) ([3-9]\.[0-9]+)")
return get_version_helper(
cc, r"(^clang version|based on LLVM) ([3-9]\.[0-9]+)")

def get_xcode_version(cc):
return get_version_helper(cc, r"(^Apple LLVM version) ([5-9]\.[0-9]+)")
return get_version_helper(
cc, r"(^Apple LLVM version) ([5-9]\.[0-9]+)")

def get_gas_version(cc):
try:
Expand Down

0 comments on commit a25fd93

Please sign in to comment.