Reland "Build iOS unittest target in unopt builds" (#44356)" (flutter/engine#44821)

Relands https://github.com/flutter/engine/pull/44301

The original PR was reverted in https://github.com/flutter/engine/pull/44356

The `assert flutter_dylib_time <= ios_test_lib_time, final_message` check is reverted in 0d8aebd040, so we are safe to land this again. 

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
Chris Yang
2023-08-31 13:05:34 -07:00
committed by GitHub
parent 5409eadd3c
commit 238fda902d
2 changed files with 5 additions and 1 deletions

View File

@@ -149,6 +149,10 @@ group("unittests") {
[ "//flutter/shell/platform/android:flutter_shell_native_unittests" ]
}
if (is_ios) {
public_deps += [ "//flutter/shell/platform/darwin/ios:ios_test_flutter" ]
}
# Compile all unittests targets if enabled.
if (enable_unittests) {
public_deps += [

View File

@@ -270,7 +270,7 @@ source_set("ios_test_flutter_mrc") {
shared_library("ios_test_flutter") {
testonly = true
visibility = [ ":*" ]
visibility = [ "*" ]
cflags = [
"-fvisibility=default",
"-F$platform_frameworks_path",