This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 3 files changed +9
-5
lines changed 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,6 @@ group("flutter") {
82
82
# gen_snapshot for the host and not the target.
83
83
" //third_party/dart/runtime/bin:gen_snapshot" ,
84
84
85
- # Built alongside gen_snapshot for 64 bit targets
86
- " //third_party/dart/runtime/bin:analyze_snapshot" ,
87
-
88
85
# Impeller artifacts - compiler and libtessellator
89
86
" //flutter/impeller/compiler:impellerc" ,
90
87
" //flutter/impeller/tessellator:tessellator_shared" ,
@@ -93,6 +90,13 @@ group("flutter") {
93
90
" //flutter/tools/path_ops" ,
94
91
]
95
92
93
+ if (host_os == " linux" ) {
94
+ public_deps += [
95
+ # Built alongside gen_snapshot for 64 bit targets
96
+ " //third_party/dart/runtime/bin:analyze_snapshot" ,
97
+ ]
98
+ }
99
+
96
100
if (full_dart_sdk ) {
97
101
public_deps += [ " //flutter/web_sdk" ]
98
102
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ group("generate_snapshot_bins") {
37
37
}
38
38
39
39
# Build analyze_snapshot for 64-bit target CPUs.
40
- if (target_cpu == " x64" || target_cpu == " arm64" ) {
40
+ if (host_os == " linux " && ( target_cpu == " x64" || target_cpu == " arm64" ) ) {
41
41
deps +=
42
42
[ " //third_party/dart/runtime/bin:analyze_snapshot($host_toolchain )" ]
43
43
}
Original file line number Diff line number Diff line change @@ -667,7 +667,7 @@ if (target_cpu != "x86") {
667
667
}
668
668
}
669
669
670
- if (target_cpu == " x64" || target_cpu == " arm64" ) {
670
+ if (host_os == " linux " && ( target_cpu == " x64" || target_cpu == " arm64" ) ) {
671
671
zip_bundle (" analyze_snapshot" ) {
672
672
deps =
673
673
[ " //third_party/dart/runtime/bin:analyze_snapshot($host_toolchain )" ]
You can’t perform that action at this time.
0 commit comments