[macOS] Build unittests on all macOS host builds (flutter/engine#41215)
Whether we're building an x64 or arm64 macOS host build, always build unit tests. Issue: https://github.com/flutter/flutter/issues/124840
This commit is contained in:
@@ -10,9 +10,12 @@ import("//third_party/dart/sdk_args.gni")
|
||||
is_aot_test =
|
||||
flutter_runtime_mode == "profile" || flutter_runtime_mode == "release"
|
||||
|
||||
# Unit tests targets are only enabled for host machines and Fuchsia right now
|
||||
# Build unit tests when any of the following are true:
|
||||
# * host_toolchain: non-cross-compile, so we can run tests on the host.
|
||||
# * is_mac: arm64 builds can run x64 binaries.
|
||||
# * is_fuchsia: build unittests for testing on device.
|
||||
declare_args() {
|
||||
enable_unittests = current_toolchain == host_toolchain || is_fuchsia
|
||||
enable_unittests = current_toolchain == host_toolchain || is_fuchsia || is_mac
|
||||
}
|
||||
|
||||
# Creates a translation unit that defines the flutter::testing::GetFixturesPath
|
||||
|
||||
Reference in New Issue
Block a user