This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,11 @@ if (flutter_prebuilt_dart_sdk) {
46
46
47
47
# Flutter SDK artifacts should only be built when either doing host builds, or
48
48
# 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
49
51
_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
51
54
52
55
group (" dart_sdk" ) {
53
56
if (_build_engine_artifacts ) {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def is_host_build(args):
88
88
# target_os='linux' and linux-cpu='arm64'
89
89
# TODO(fujino): make host platform explicit
90
90
# 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' )
92
92
93
93
# Determines whether a prebuilt Dart SDK can be used instead of building one.
94
94
# We can use a prebuilt Dart SDK when:
You can’t perform that action at this time.
0 commit comments