0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00

configure: account for CLANG_VENDOR when checking for llvm version

Fixes: https://github.com/nodejs/node/issues/29536

PR-URL: https://github.com/nodejs/node/pull/33860
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Nathan Blair 2020-06-12 23:35:38 +00:00 committed by James M Snell
parent dca816325d
commit 409fdba6d5
No known key found for this signature in database
GPG Key ID: 7341B15C070877AC

View File

@ -852,7 +852,7 @@ def get_nasm_version(asm):
def get_llvm_version(cc):
return get_version_helper(
cc, r"(^(?:FreeBSD )?clang version|based on LLVM) ([0-9]+\.[0-9]+)")
cc, r"(^(?:.+ )?clang version|based on LLVM) ([0-9]+\.[0-9]+)")
def get_xcode_version(cc):
return get_version_helper(