From 899fc2a7e0e542226785d03c684f121ae8644c57 Mon Sep 17 00:00:00 2001 From: Martin Kustermann Date: Fri, 8 Mar 2024 14:49:37 +0100 Subject: [PATCH] Add fuchsia_gn_sdk GN variable pointing to //flutter/tools/fuchsia/gn-sdk (flutter/engine#51287) The Dart -> Flutter Engine autoroller seems to be failing atm due to fuchsia build errors. The Dart SDK CL in [0] is depending on a fuchsia gn sdk import. The import path defaults to `//third_party/fuchsia/gn-sdk` in the Dart build rules. Though flutter seemingly has it in `//flutter/tools/fuchsia/gn-sdk` (which was added to DEPS in c274921fa6034e5e133129967c0789ab8c7fc827) => This is an attempt to override the default & fix autoroller [0] https://dart-review.googlesource.com/c/sdk/+/355283/14 --- engine/src/flutter/tools/gn | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index a6df196bd2..1b39ea7e2f 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -769,6 +769,7 @@ def to_gn_args(args): if args.target_os == 'fuchsia': gn_args['gn_configs_path'] = '//flutter/build/config/fuchsia/gn_configs.gni' + gn_args['fuchsia_gn_sdk'] = '//flutter/tools/fuchsia/gn-sdk' if args.fuchsia_target_api_level is not None: gn_args['fuchsia_target_api_level'] = args.fuchsia_target_api_level elif args.target_os == 'fuchsia':