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

Unified Diff: runtime/BUILD.gn

Issue 2645323002: Add support for configurable -OX optimization levels for debug builds (Closed)
Patch Set: Make the --debug-opt-level be a string (e.g. for "s"), add debug_optimization_level 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
Index: runtime/BUILD.gn
diff --git a/runtime/BUILD.gn b/runtime/BUILD.gn
index 36983b6a75caede18bcd48379045163686f254f8..05d33f76211d3b16a2702c7c6dcd98f359bc6363 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}" ]
} else {
cflags += [ "-O3" ]
}

Powered by Google App Engine
This is Rietveld 408576698