mirror of
https://github.com/servo/servo.git
synced 2025-06-09 00:53:26 +00:00
update Ubuntu version check to > 21.10
Update clang-format version check to use find() instead of startswith() to deal with distro-specific discrepancy
This commit is contained in:
parent
c128c9a609
commit
43b38e3e37
2 changed files with 2 additions and 2 deletions
|
@ -787,7 +787,7 @@ def setup_clangfmt(env):
|
|||
try:
|
||||
version = check_output([cmd, "--version"], env=env, universal_newlines=True).rstrip()
|
||||
print(version)
|
||||
if not version.startswith("clang-format version {}.".format(CLANGFMT_VERSION)):
|
||||
if version.find("clang-format version {}.".format(CLANGFMT_VERSION)) == -1:
|
||||
print("clang-format: wrong version (v{} required). Skipping CPP formatting.".format(CLANGFMT_VERSION))
|
||||
return False, None, None
|
||||
except OSError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue