Use gn check_targets and gn gen --check instead of presubmit
gn has the ability to verify that 'gn check' passes for a set of targets
during generation. Use this instead of a presubmit to avoid having to
run gn multiple times and to get coverage on every run instead of just
on presubmits.
R=eseidel@google.com, eseidel@chromium.org
Review URL: https://codereview.chromium.org/821103003
diff --git a/mojo/tools/mojob.py b/mojo/tools/mojob.py
index 2e33c39..9419ce5 100755
--- a/mojo/tools/mojob.py
+++ b/mojo/tools/mojob.py
@@ -78,7 +78,7 @@
def gn(config):
- command = ['gn', 'gen']
+ command = ['gn', 'gen', '--check']
gn_args = []
gn_args.append('is_debug=' + ('true' if config.is_debug else 'false'))