Split Mac clang format + use py3 for all clang-format OS's

No-Try: True
Bug: b/226298805
Change-Id: Iebd074aac1b15feb740a6fdcab122fe66053b2e2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256460
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Christoffer Jansson <jansson@google.com>
Cr-Commit-Position: refs/heads/main@{#36297}
This commit is contained in:
Christoffer Jansson
2022-03-23 09:36:13 +01:00
committed by WebRTC LUCI CQ
parent 445a750d38
commit e7d7497e34

29
DEPS
View File

@ -2246,7 +2246,8 @@ hooks = [
'name': 'clang_format_win',
'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'download_from_google_storage',
'action': [ 'python3',
'src/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--platform=win32',
'--no_auth',
@ -2255,22 +2256,38 @@ hooks = [
],
},
{
'name': 'clang_format_mac',
'name': 'clang_format_mac_x64',
'pattern': '.',
'condition': 'host_os == "mac"',
'action': [ 'download_from_google_storage',
'condition': 'host_os == "mac" and host_cpu == "x64"',
'action': [ 'python3',
'src/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--platform=darwin',
'--no_auth',
'--bucket', 'chromium-clang-format',
'-s', 'src/buildtools/mac/clang-format.sha1',
'-s', 'src/buildtools/mac/clang-format.x64.sha1',
'-o', 'src/buildtools/mac/clang-format',
],
},
{
'name': 'clang_format_mac_arm64',
'pattern': '.',
'condition': 'host_os == "mac" and host_cpu == "arm64"',
'action': [ 'python3',
'src/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
'--bucket', 'chromium-clang-format',
'-s', 'src/buildtools/mac/clang-format.arm64.sha1',
'-o', 'src/buildtools/mac/clang-format',
],
},
{
'name': 'clang_format_linux',
'pattern': '.',
'condition': 'host_os == "linux"',
'action': [ 'download_from_google_storage',
'action': [ 'python3',
'src/third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--platform=linux*',
'--no_auth',