зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1651156 - Use HOST_BIN_SUFFIX in clang-format lint. r=ahal
This allows cross-compiling to Windows targets. Differential Revision: https://phabricator.services.mozilla.com/D82582
This commit is contained in:
Родитель
4c8547baa8
Коммит
40947e8d1d
|
@ -78,7 +78,7 @@ def get_clang_format_binary():
|
||||||
|
|
||||||
clang_tools_path = os.path.join(get_state_dir(), "clang-tools")
|
clang_tools_path = os.path.join(get_state_dir(), "clang-tools")
|
||||||
bin_path = os.path.join(clang_tools_path, "clang-tidy", "bin")
|
bin_path = os.path.join(clang_tools_path, "clang-tidy", "bin")
|
||||||
return os.path.join(bin_path, "clang-format" + substs.get('BIN_SUFFIX', ''))
|
return os.path.join(bin_path, "clang-format" + substs.get('HOST_BIN_SUFFIX', ''))
|
||||||
|
|
||||||
|
|
||||||
def is_ignored_path(ignored_dir_re, topsrcdir, f):
|
def is_ignored_path(ignored_dir_re, topsrcdir, f):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче