Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: tools/gn.py

Issue 2902313004: CoreJIT snapshots without training. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« runtime/include/dart_api.h ('K') | « runtime/vm/snapshot_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn.py
diff --git a/tools/gn.py b/tools/gn.py
index 1504a6dfaca14cfa9072966c7b8c4e61c83808dc..d609560f58be69e1c97793bec9c9386335f0735d 100755
--- a/tools/gn.py
+++ b/tools/gn.py
@@ -385,6 +385,10 @@ def parse_args(args):
help='Disable MSAN',
dest='msan',
action='store_false')
+ other_group.add_argument('--gn-args',
+ help='Set extra GN args',
+ dest='gn_args',
+ action='append')
other_group.add_argument('--platform-sdk',
help='Directs the create_sdk target to create a smaller "Platform" SDK',
default=MakePlatformSDK(),
@@ -458,6 +462,8 @@ def Main(argv):
out_dir = GetOutDir(mode, arch, target_os)
command = [gn, 'gen', out_dir, '--check']
gn_args = ToCommandLine(ToGnArgs(args, mode, arch, target_os))
+ if args.gn_args != None:
+ gn_args += args.gn_args
if args.verbose:
print "gn gen --check in %s" % out_dir
if args.ide:
« runtime/include/dart_api.h ('K') | « runtime/vm/snapshot_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698