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

Unified Diff: runtime/BUILD.gn

Issue 2645323002: Add support for configurable -OX optimization levels for debug builds (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | tools/gn.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/BUILD.gn
diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn
index 36983b6a75caede18bcd48379045163686f254f8..1357ea29c5e96766813166455c323ebbab013dc6 100644
--- a/runtime/BUILD.gn
+++ b/runtime/BUILD.gn
@@ -28,6 +28,9 @@ declare_args() {
dart_target_arch = ""
dart_experimental_interpreter = false
+
+ # The optimization level to use for debug builds.
+ dart_debug_optimization_level = 2
}
config("dart_public_config") {
@@ -163,7 +166,7 @@ config("dart_config") {
]
if (dart_debug) {
- cflags += [ "-O2" ]
+ cflags += [ "-O${dart_debug_optimization_level}" ]
Kevin Millikin (Google) 2017/01/23 13:32:22 This flag seems to be injected two places: once he
kustermann 2017/01/23 13:59:11 Yes, afaik.
kustermann 2017/01/23 14:11:54 Sorry, to clarify: It is the second one. """ If y
zra 2017/01/23 16:39:54 We probably need to do this in both places, both f
kustermann 2017/01/24 11:44:51 Done.
} else {
cflags += [ "-O3" ]
}
« no previous file with comments | « no previous file | tools/gn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698