From 8b55f2b8bb4ada03ed910021d87dc1d53c24eaf9 Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Wed, 2 Aug 2023 15:25:36 -0700 Subject: [PATCH] build unittest target in unopt build --- shell/platform/darwin/ios/BUILD.gn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/platform/darwin/ios/BUILD.gn b/shell/platform/darwin/ios/BUILD.gn index 762d3ca94a228..929acb2fc16a1 100644 --- a/shell/platform/darwin/ios/BUILD.gn +++ b/shell/platform/darwin/ios/BUILD.gn @@ -262,7 +262,6 @@ source_set("ios_test_flutter_mrc") { } shared_library("ios_test_flutter") { - testonly = true visibility = [ ":*" ] cflags = [ "-fvisibility=default", @@ -301,7 +300,6 @@ shared_library("ios_test_flutter") { "framework/Source/connection_collection_test.mm", ] deps = [ - ":flutter_framework", ":flutter_framework_source", ":flutter_framework_source_arc", ":ios_gpu_configuration", @@ -464,4 +462,8 @@ action("flutter_framework") { ] deps = [ ":universal_flutter_framework" ] + + if (is_debug) { + deps += [ ":ios_test_flutter" ] + } }