summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorShigeki Ohtsu <ohtsu@ohtsu.org>2017-03-03 15:22:08 +0900
committerShigeki Ohtsu <ohtsu@ohtsu.org>2017-03-07 22:55:20 +0900
commitefaab8fccf979882c39a3ad5441d2985948a40c1 (patch)
tree9d596a09a2abad8f8be18d3be3a1828922766689 /configure
parent3f27f02da04b70120b397eeee904ff92784644ac (diff)
downloadandroid-node-v8-efaab8fccf979882c39a3ad5441d2985948a40c1.tar.gz
android-node-v8-efaab8fccf979882c39a3ad5441d2985948a40c1.tar.bz2
android-node-v8-efaab8fccf979882c39a3ad5441d2985948a40c1.zip
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: https://github.com/nodejs/node/pull/11668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 0ec69229a8..31d682575e 100755
--- a/configure
+++ b/configure
@@ -576,11 +576,11 @@ def get_version_helper(cc, regexp):
def get_llvm_version(cc):
return get_version_helper(
- cc, r"(^clang version|based on LLVM) ([3-9]\.[0-9]+)")
+ cc, r"(^(?:FreeBSD )?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]+)")
+ cc, r"(^Apple LLVM version) ([5-9]\.[0-9]+)")
def get_gas_version(cc):
try: