chore: use --root instead of --project_root for cpplint (#34456)
--root has been improved upstream in depot_tools to better handle Windows: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3648533
This commit is contained in:
parent
16db5a112e
commit
289128b96c
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ function spawnAndCheckExitCode (cmd, args, opts) {
|
|||
}
|
||||
|
||||
function cpplint (args) {
|
||||
args.unshift(`--project_root=${SOURCE_ROOT}`);
|
||||
args.unshift(`--root=${SOURCE_ROOT}`);
|
||||
const result = childProcess.spawnSync(IS_WINDOWS ? 'cpplint.bat' : 'cpplint.py', args, { encoding: 'utf8', shell: true });
|
||||
// cpplint.py writes EVERYTHING to stderr, including status messages
|
||||
if (result.stderr) {
|
||||
|
|
Loading…
Add table
Reference in a new issue