Skip to content

Commit ed1d266

Browse files
committed
change regex to non-capturing parentheses
1 parent 4ad3540 commit ed1d266

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

configure

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,7 @@ def get_version_helper(cc, regexp):
576576

577577
def get_llvm_version(cc):
578578
return get_version_helper(
579-
cc, r"(^clang version|^FreeBSD clang version|based on LLVM) " +
580-
"([3-9]\.[0-9]+)")
579+
cc, r"(^(?:FreeBSD )?clang version|based on LLVM) ([3-9]\.[0-9]+)")
581580

582581
def get_xcode_version(cc):
583582
return get_version_helper(

0 commit comments

Comments
 (0)