Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ed66091

Browse files
authored
don't build flutter SDK artifacts for armv7 (#28016)
1 parent dadc7b2 commit ed66091

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

BUILD.gn

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ if (flutter_prebuilt_dart_sdk) {
4646

4747
# Flutter SDK artifacts should only be built when either doing host builds, or
4848
# for cross-compiled desktop targets.
49+
# TODO: We can't build the engine artifacts for arm (32-bit) right now;
50+
# see https://github.com/flutter/flutter/issues/74322
4951
_build_engine_artifacts =
50-
current_toolchain == host_toolchain || (is_linux && !is_chromeos) || is_mac
52+
current_toolchain == host_toolchain ||
53+
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac
5154

5255
group("dart_sdk") {
5356
if (_build_engine_artifacts) {

tools/gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def is_host_build(args):
8888
# target_os='linux' and linux-cpu='arm64'
8989
# TODO(fujino): make host platform explicit
9090
# https://github.com/flutter/flutter/issues/79403
91-
return args.target_os is None or args.target_os == 'linux'
91+
return args.target_os is None or (args.target_os == 'linux' and args.linux_cpu == 'arm64')
9292

9393
# Determines whether a prebuilt Dart SDK can be used instead of building one.
9494
# We can use a prebuilt Dart SDK when:

0 commit comments

Comments
 (0)