build: fix clang format location helper (again) (#42924)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: clavin <clavin@electronjs.org>
This commit is contained in:
parent
c4d9e79021
commit
24a6c66145
2 changed files with 5 additions and 2 deletions
|
@ -23,7 +23,7 @@ import traceback
|
|||
import tempfile
|
||||
|
||||
from functools import partial
|
||||
from lib.util import get_depot_tools_executable
|
||||
from lib.util import get_buildtools_executable
|
||||
|
||||
DEFAULT_EXTENSIONS = 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,mm'
|
||||
DEFAULT_CLANG_FORMAT_IGNORE = '.clang-format-ignore'
|
||||
|
@ -203,7 +203,7 @@ def main():
|
|||
'--clang-format-executable',
|
||||
metavar='EXECUTABLE',
|
||||
help='path to the clang-format executable',
|
||||
default=get_depot_tools_executable('clang-format'))
|
||||
default=get_buildtools_executable('clang-format'))
|
||||
parser.add_argument(
|
||||
'--extensions',
|
||||
help='comma-separated list of file extensions'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue