Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
WIP: Stype per PEP-0008
  • Loading branch information
Stefan Budeanu committed Mar 4, 2016
commit a25fd93cdcb8e2b4f3cf5797f4e4ad519a9ae027
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