From 5efe381d1da16cf13b1e85e254e9e97ecfe93be8 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. (flutter/engine#9107) This fixes a regression I introduced in https://github.com/flutter/engine/pull/8869 while preparing the buildroot for Fuchsia. --- engine/src/flutter/lib/snapshot/BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/snapshot/BUILD.gn b/engine/src/flutter/lib/snapshot/BUILD.gn index 878fbf217d7..99687832085 100644 --- a/engine/src/flutter/lib/snapshot/BUILD.gn +++ b/engine/src/flutter/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" ] }