Only build analyze_snapshot on Linux host (flutter/engine#39129)

This commit is contained in:
Zachary Anderson 2023-01-25 08:35:57 -08:00 committed by GitHub
parent d15e4fe71f
commit daeb8316d7
3 changed files with 9 additions and 5 deletions

View File

@ -82,9 +82,6 @@ group("flutter") {
# gen_snapshot for the host and not the target.
"//third_party/dart/runtime/bin:gen_snapshot",
# Built alongside gen_snapshot for 64 bit targets
"//third_party/dart/runtime/bin:analyze_snapshot",
# Impeller artifacts - compiler and libtessellator
"//flutter/impeller/compiler:impellerc",
"//flutter/impeller/tessellator:tessellator_shared",
@ -93,6 +90,13 @@ group("flutter") {
"//flutter/tools/path_ops",
]
if (host_os == "linux") {
public_deps += [
# Built alongside gen_snapshot for 64 bit targets
"//third_party/dart/runtime/bin:analyze_snapshot",
]
}
if (full_dart_sdk) {
public_deps += [ "//flutter/web_sdk" ]
}

View File

@ -37,7 +37,7 @@ group("generate_snapshot_bins") {
}
# Build analyze_snapshot for 64-bit target CPUs.
if (target_cpu == "x64" || target_cpu == "arm64") {
if (host_os == "linux" && (target_cpu == "x64" || target_cpu == "arm64")) {
deps +=
[ "//third_party/dart/runtime/bin:analyze_snapshot($host_toolchain)" ]
}

View File

@ -667,7 +667,7 @@ if (target_cpu != "x86") {
}
}
if (target_cpu == "x64" || target_cpu == "arm64") {
if (host_os == "linux" && (target_cpu == "x64" || target_cpu == "arm64")) {
zip_bundle("analyze_snapshot") {
deps =
[ "//third_party/dart/runtime/bin:analyze_snapshot($host_toolchain)" ]