From a11fb5bbf5a9d17a8dccb1ea1cff260258dc0e33 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 28 Mar 2024 15:03:56 +0100 Subject: [PATCH] Update configure.py to support pre-release versions of clang --- configure.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 50e2c40e188..d3644a81bc7 100644 --- a/configure.py +++ b/configure.py @@ -864,12 +864,16 @@ def retrieve_clang_version(clang_executable): curr_version_split = curr_version.lower().split('clang version ') if len(curr_version_split) > 1: - curr_version = curr_version_split[1].split()[0] + curr_version = curr_version_split[1].split()[0].split('git') + if len(curr_version) > 1: + print('WARNING: current clang installation is not a release version.\n') + + curr_version = curr_version[0] curr_version_int = convert_version_to_int(curr_version) # Check if current clang version can be detected properly. if not curr_version_int: - print('WARNING: current clang installation is not a release version.\n') + print('WARNING: current clang installation version unknown.\n') return None print('You have Clang %s installed.\n' % curr_version)