Skip to content

Commit 9c17c35

Browse files
author
Chris Yang
authored
Build iOS unittest target in unopt builds (flutter#44301)
build ios unittest target in unopt builds. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent ae2cd64 commit 9c17c35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

shell/platform/darwin/ios/BUILD.gn

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ source_set("ios_test_flutter_mrc") {
264264
}
265265

266266
shared_library("ios_test_flutter") {
267-
testonly = true
268267
visibility = [ ":*" ]
269268
cflags = [
270269
"-fvisibility=default",
@@ -304,7 +303,6 @@ shared_library("ios_test_flutter") {
304303
"framework/Source/connection_collection_test.mm",
305304
]
306305
deps = [
307-
":flutter_framework",
308306
":flutter_framework_source",
309307
":flutter_framework_source_arc",
310308
":ios_gpu_configuration",
@@ -467,4 +465,8 @@ action("flutter_framework") {
467465
]
468466

469467
deps = [ ":universal_flutter_framework" ]
468+
469+
if (is_debug) {
470+
deps += [ ":ios_test_flutter" ]
471+
}
470472
}

0 commit comments

Comments
 (0)