[vim] Update CrBuild to use autoninja.

Bug: v8:9183
Change-Id: Id2ae3ee0a53133eaf41e28fcadc681edf5ffb382
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1630673
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61833}
This commit is contained in:
Benedikt Meurer 2019-05-27 08:02:48 +02:00 committed by Commit Bot
parent e846ad9fa5
commit 3f07c825b0

View File

@ -53,11 +53,8 @@ def path_to_build_dir(configuration):
def compute_ninja_command_for_targets(targets='', configuration=None):
flags = []
if "use_goma=1" in os.getenv('GYP_DEFINES', '').split(' '):
flags = ['-j', '512']
build_dir = path_to_build_dir(configuration);
build_cmd = ' '.join(['ninja'] + flags + ['-C', build_dir, targets])
build_cmd = ' '.join(['autoninja', '-C', build_dir, targets])
vim.command('return "%s"' % build_cmd)