From 2e6afc5cc7e59c7e1fb2fbf4b75f048baa8d579c Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 2 Jan 2018 09:33:53 -0800 Subject: [PATCH] [fuchsia] Use AOT in release builds (#4430) --- build/flutter_app.gni | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/flutter_app.gni b/build/flutter_app.gni index 219ca08a0e3af..b3f74e148b22d 100644 --- a/build/flutter_app.gni +++ b/build/flutter_app.gni @@ -12,7 +12,7 @@ import("//topaz/public/dart-pkg/zircon/sdk_ext.gni") import("//topaz/public/lib/ui/flutter/sdk_ext/sdk_ext.gni") declare_args() { - flutter_app_default_is_jit = true + flutter_app_default_is_jit = is_debug } gen_snapshot_label = "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" @@ -301,11 +301,12 @@ template("flutter_aot_app") { "-nostdlib", "-nostartfiles", ] + output_dir = target_gen_dir output_name = outer_target_name } dylib_path = - get_label_info(":$dylib_label($shlib_toolchain)", "root_out_dir") + + get_label_info(":$dylib_label($shlib_toolchain)", "target_gen_dir") + "/lib.unstripped/lib$target_name.so" action(target_name) {