Index: tools/gn.py |
diff --git a/tools/gn.py b/tools/gn.py |
index df6e36ec05805bc2f14f9139445d1a3124a309ca..5b682a5dfe0ce4856d4c3eddb5b522ff7ee5e2b7 100755 |
--- a/tools/gn.py |
+++ b/tools/gn.py |
@@ -205,6 +205,10 @@ def to_gn_args(args, mode, arch, target_os): |
gn_args['use_goma'] = False |
gn_args['goma_dir'] = None |
+ if args.debug_opt_level: |
+ gn_args['dart_debug_optimization_level'] = args.debug_opt_level |
+ gn_args['debug_optimization_level'] = args.debug_opt_level |
+ |
return gn_args |
@@ -309,6 +313,10 @@ def parse_args(args): |
help='Use Clang', |
default=True, |
action='store_true') |
+ other_group.add_argument('--debug-opt-level', |
zra
2017/01/24 16:00:36
Let's leave --clang and --no-clang adjacent, and m
kustermann
2017/01/24 16:36:18
Done.
|
+ '-d', |
+ help='The optimization level to use for debug builds', |
+ type=str) |
other_group.add_argument('--no-clang', |
help='Disable Clang', |
dest='clang', |