We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ff5495 commit e9739bcCopy full SHA for e9739bc
1 file changed
testing/testing.gni
@@ -10,9 +10,12 @@ import("//third_party/dart/sdk_args.gni")
10
is_aot_test =
11
flutter_runtime_mode == "profile" || flutter_runtime_mode == "release"
12
13
-# Unit tests targets are only enabled for host machines and Fuchsia right now
+# Build unit tests when any of the following are true:
14
+# * host_toolchain: non-cross-compile, so we can run tests on the host.
15
+# * is_mac: arm64 builds can run x64 binaries.
16
+# * is_fuchsia: build unittests for testing on device.
17
declare_args() {
- enable_unittests = current_toolchain == host_toolchain || is_fuchsia
18
+ enable_unittests = current_toolchain == host_toolchain || is_fuchsia || is_mac
19
}
20
21
# Creates a translation unit that defines the flutter::testing::GetFixturesPath
0 commit comments