From dfb2c7f8c42ba79c378f42c05b7dda93c1fe5d7a Mon Sep 17 00:00:00 2001 From: "P.Y. Laligand" Date: Wed, 12 Apr 2017 20:03:40 -0700 Subject: [PATCH] Allow Flutter shell to be built for a Linux host. (flutter/engine#3589) --- engine/src/flutter/fml/platform/linux/paths_linux.cc | 2 +- engine/src/flutter/glue/BUILD.gn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/fml/platform/linux/paths_linux.cc b/engine/src/flutter/fml/platform/linux/paths_linux.cc index 4ee3f9aa59..64e361ca7d 100644 --- a/engine/src/flutter/fml/platform/linux/paths_linux.cc +++ b/engine/src/flutter/fml/platform/linux/paths_linux.cc @@ -18,7 +18,7 @@ std::pair GetExecutableDirectoryPath() { if (read_size == -1) { return {false, ""}; } - return {true, files::GetDirectoryName(std::string{path, read_size})}; + return {true, files::GetDirectoryName(std::string{path, static_cast(read_size)})}; } } // namespace paths diff --git a/engine/src/flutter/glue/BUILD.gn b/engine/src/flutter/glue/BUILD.gn index 6f160a4da4..dd38623f3c 100644 --- a/engine/src/flutter/glue/BUILD.gn +++ b/engine/src/flutter/glue/BUILD.gn @@ -12,7 +12,7 @@ source_set("glue") { "//lib/ftl", ] - if (is_fuchsia || is_fuchsia_host) { + if (is_fuchsia) { sources += [ "stack_trace_fuchsia.cc" ] public_deps = [