diff options
author | 2021-10-06 09:42:35 -0700 | |
---|---|---|
committer | 2021-10-06 09:44:15 -0700 | |
commit | 811a1ae2701029918461008dce72474b3d85a8a8 (patch) | |
tree | 7b6a0059ad60149db779a3bd581531fb8d44fd56 | |
parent | ba26bdc3164e4ecf95f96bff1da52deaaec3b038 (diff) |
[get_clang_version] Make the version regex permissive
For instance, this will match `clang-dev` when using a local build of
llvm-toolchain.
Test: run script
Change-Id: I3f2a0a6adc360f0a299def79535ce139353aece2
-rwxr-xr-x | scripts/get_clang_version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get_clang_version.py b/scripts/get_clang_version.py index 64d922a20..691c45dd3 100755 --- a/scripts/get_clang_version.py +++ b/scripts/get_clang_version.py @@ -34,7 +34,7 @@ def get_clang_prebuilts_version(global_go): with open(global_go) as infile: contents = infile.read() - regex_rev = r'\tClangDefaultVersion\s+= "(?P<rev>clang-r\d+[a-z]?\d?)"' + regex_rev = r'\tClangDefaultVersion\s+= "(?P<rev>clang-.*)"' match_rev = re.search(regex_rev, contents) if match_rev is None: raise RuntimeError('Parsing clang info failed') |