From 6edfaf7855ac20674b2eecf8370107b7998d3da1 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Mon, 15 Apr 2019 12:57:45 -0700 Subject: [PATCH] Remove the flutter_aot GN argument. (flutter/engine#8581) This argument has been defunct for a while. It was originally added as a means of testing the AOT machinery in debug modes. --- engine/src/flutter/common/config.gni | 7 ------- engine/src/flutter/tools/gn | 6 ------ 2 files changed, 13 deletions(-) diff --git a/engine/src/flutter/common/config.gni b/engine/src/flutter/common/config.gni index f81be4aac0..315621ccf4 100644 --- a/engine/src/flutter/common/config.gni +++ b/engine/src/flutter/common/config.gni @@ -11,9 +11,6 @@ if (target_cpu == "arm" || target_cpu == "arm64") { } declare_args() { - # Enable ahead-of-time compilation on platforms where AOT is optional. - flutter_aot = false - # The runtime mode ("debug", "profile", "release", "dynamic_profile", or "dynamic_release") flutter_runtime_mode = "debug" } @@ -41,7 +38,3 @@ if (flutter_runtime_mode == "debug") { } else { feature_defines_list += [ "FLUTTER_RUNTIME_MODE=0" ] } - -if (flutter_aot) { - feature_defines_list += [ "FLUTTER_AOT=1" ] -} diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index 7dacacf065..c589e82e09 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -110,18 +110,13 @@ def to_gn_args(args): # The GN arg is not available in the windows toolchain. gn_args['enable_lto'] = enable_lto - aot = not runtime_mode in ['debug', 'dynamic_profile', 'dynamic_release'] if args.target_os == 'android': gn_args['target_os'] = 'android' elif args.target_os == 'ios': gn_args['target_os'] = 'ios' gn_args['use_ios_simulator'] = args.simulator - if not args.simulator: - aot = True elif args.target_os is not None: gn_args['target_os'] = args.target_os - else: - aot = False gn_args['dart_lib_export_symbols'] = False @@ -189,7 +184,6 @@ def to_gn_args(args): gn_args["host_cpu"] = "x86" gn_args['flutter_runtime_mode'] = runtime_mode - gn_args['flutter_aot'] = aot if args.target_sysroot: gn_args['target_sysroot'] = args.target_sysroot