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" ] |
} |