Skip to content

Commit b1d171b

Browse files
chinmaygardelicheng
authored andcommitted
Fix unopt variants of profile and release builds. (flutter#9107)
This fixes a regression I introduced in flutter#8869 while preparing the buildroot for Fuchsia.
1 parent 616998d commit b1d171b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/snapshot/BUILD.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ compiled_action("generate_snapshot_bin") {
5858
rebase_path(isolate_snapshot_instructions),
5959
]
6060

61-
if (is_debug) {
61+
if (is_debug && flutter_runtime_mode != "profile" &&
62+
flutter_runtime_mode != "release") {
6263
args += [ "--enable_asserts" ]
6364
}
6465

0 commit comments

Comments
 (0)