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