From 672b209e5e54ee1e1eccb11239a9c69d15e9bbca Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 4 Aug 2017 13:12:36 -0700 Subject: [PATCH] Update buildroot and opt out of LTO on unopt builds. (flutter/engine#3952) --- DEPS | 2 +- engine/src/flutter/shell/platform/darwin/ios/BUILD.gn | 1 - engine/src/flutter/tools/gn | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DEPS b/DEPS index a765dba10d..3c469c5836 100644 --- a/DEPS +++ b/DEPS @@ -75,7 +75,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + '6b9d76de34c1529063c927d663e44104448fb778', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + '4cf93efdd098f6c3bc26b9f38f2306fa0560ead6', # Fuchsia compatibility # diff --git a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn index 3e71549dea..097070398f 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn @@ -5,7 +5,6 @@ assert(is_ios) import("//flutter/common/config.gni") -import("//build/config/ios/rules.gni") import("//build/config/ios/ios_sdk.gni") _flutter_framework_dir = "$root_out_dir/Flutter.framework" diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 6380f4702a..40b0506aa7 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -68,6 +68,7 @@ def to_gn_args(args): gn_args['skia_use_fontconfig'] = False # Use the custom font manager instead. gn_args['is_debug'] = args.unoptimized + gn_args['enable_lto'] = not args.unoptimized gn_args['android_full_debug'] = args.target_os == 'android' and args.unoptimized gn_args['is_clang'] = not sys.platform.startswith(('cygwin', 'win'))