Skip to content

Commit a899b0b

Browse files
shigekiMylesBorins
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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent 91b8da6 commit a899b0b

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
@@ -571,11 +571,11 @@ def get_version_helper(cc, regexp):
571571

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

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

580580
def get_gas_version(cc):
581581
try:

0 commit comments

Comments
 (0)