diff --git a/DEPS b/DEPS index d34cf2271b86d..9549c2489d568 100644 --- a/DEPS +++ b/DEPS @@ -136,7 +136,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + '01e923507b28e5d1d3fe7597d2db2b30b0a543e9', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + '3b6ae6cbb7d891e637331faf689005fd6f302568', # Fuchsia compatibility # diff --git a/lib/snapshot/BUILD.gn b/lib/snapshot/BUILD.gn index 5a94265e05052..8d361a952c092 100644 --- a/lib/snapshot/BUILD.gn +++ b/lib/snapshot/BUILD.gn @@ -20,7 +20,13 @@ copy("generate_dart_ui") { } compiled_action("generate_snapshot_bin") { - tool = "//third_party/dart/runtime/bin:gen_snapshot" + # By default Dart will create a 32-bit gen_snapshot host binary if the target + # platform is 32-bit. Override this to create a 64-bit gen_snapshot for x86 + # targets because some host platforms may not support 32-bit binaries. + tool = "//third_party/dart/runtime/bin:gen_snapshot_host_targeting_host" + if (target_cpu == "x86") { + toolchain = "//build/toolchain/$host_os:clang_x64" + } if ((is_fuchsia || is_fuchsia_host) && !using_fuchsia_sdk) { platform_kernel =