From abb855ce39f5bc2b428697223e9388bd9b2b1c2d Mon Sep 17 00:00:00 2001 From: Dan Field Date: Sat, 13 Jul 2019 11:17:47 -0700 Subject: [PATCH] bitcode --- DEPS | 2 +- tools/gn | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/DEPS b/DEPS index 5a0d31c4025a4..4bf1b27ec7736 100644 --- a/DEPS +++ b/DEPS @@ -126,7 +126,7 @@ allowed_hosts = [ ] deps = { - 'src': 'https://github.com/flutter/buildroot.git' + '@' + '5a3c4ab16dc3bd0402b01ce0e613e754718b18c5', + 'src': 'https://github.com/flutter/buildroot.git' + '@' + '778935c9452dde04e246b986d6b92bbaaed142f2', # Fuchsia compatibility # diff --git a/tools/gn b/tools/gn index d1b9f88bc846a..4ea925918e836 100755 --- a/tools/gn +++ b/tools/gn @@ -83,6 +83,12 @@ def to_gn_args(args): gn_args = {} + if args.bitcode: + if args.target_os != 'ios': + raise Exception('Bitcode is only supported for iOS') + + gn_args['enable_bitcode'] = args.bitcode + # Skia GN args. gn_args['skia_enable_flutter_defines'] = True # Enable Flutter API guards in Skia. gn_args['skia_use_dng_sdk'] = False # RAW image handling. @@ -331,6 +337,9 @@ def parse_args(args): parser.add_argument('--build-glfw-shell', dest='build_glfw_shell', default=False, action='store_true', help='Force building the GLFW shell on desktop platforms where it is not built by default.') + parser.add_argument('--bitcode', default=False, action='store_true', + help='Enable bitcode for iOS targets.') + return parser.parse_args(args) def main(argv):