Skip to content

Commit e5b530c

Browse files
shigekievanlucas
authored andcommitted
build: fix llvm version detection in freebsd-10
In FreeBSD-10, the banner of clang version is "FreeBSD clang version". Fix regex to detect it. PR-URL: #11668 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent fdb4a6c commit e5b530c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,11 @@ def get_version_helper(cc, regexp):
576576

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

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

585585
def get_gas_version(cc):
586586
try:

0 commit comments

Comments
 (0)