From 65332828a30dcd9ccb628c95337a678165f9c91a Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 28 May 2019 12:00:16 -0700 Subject: [PATCH] Fix unopt variants of profile and release builds. 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 878fbf217d73d..9968783208543 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" ] }