From 7e1788acda6e71502dc560e183f607d3ecddac5d Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 28 May 2019 12:42:53 -0700 Subject: [PATCH] Fix unopt variants of profile and release builds. (#9107) This fixes a regression I introduced in https://github.com/flutter/engine/pull/8869 while preparing the buildroot for Fuchsia. --- lib/snapshot/BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/snapshot/BUILD.gn b/lib/snapshot/BUILD.gn index 878fbf217d7..99687832085 100644 --- a/lib/snapshot/BUILD.gn +++ b/lib/snapshot/BUILD.gn @@ -58,7 +58,8 @@ compiled_action("generate_snapshot_bin") { rebase_path(isolate_snapshot_instructions), ] - if (is_debug) { + if (is_debug && flutter_runtime_mode != "profile" && + flutter_runtime_mode != "release") { args += [ "--enable_asserts" ] }