Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add support for android_cpu.
  • Loading branch information
godofredoc committed Nov 10, 2022
commit 74775c8cbf8b68444d906ddeb895055d874e0dc0
2 changes: 1 addition & 1 deletion build/archives/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ if (is_mac) {
if (is_win) {
zip_bundle("archive_win_gen_snapshot") {
deps = [ "//third_party/dart/runtime/bin:gen_snapshot" ]
output = "$target_platform_name-$dart_target_arch-$flutter_runtime_mode/windows-x64.zip"
output = "$target_platform_name-$android-cpu-$flutter_runtime_mode/windows-x64.zip"
files = [
{
source = "$root_out_dir/gen_snapshot.exe"
Expand Down
4 changes: 2 additions & 2 deletions common/config.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ declare_args() {
# Whether to use a prebuilt Dart SDK instead of building one.
flutter_prebuilt_dart_sdk = false

# The dart target architecture.
dart_target_arch = "arm"
# The android cpu used to generate windows artifacts.
android_cpu = "arm"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem quite right. I need some time to investigate.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this workaround would be a continuation of this hack:

engine/tools/gn

Line 289 in 4b32f2e

# No cross-compilation on Windows (for now). Use host toolchain that

Instead of going further in this direction, we should try to remove the hack. (Added/expanded on here #3883 cc @rmacnak-google)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following #37125, I think android_cpu is no longer needed, and target_cpu can be used. But I haven't actually tried it myself ;-)

}

# feature_defines_list ---------------------------------------------------------
Expand Down
Loading