From 72987952e4729f9d057ef34c2ab5fbaff5c754fa Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Wed, 18 Nov 2015 12:15:45 -0800 Subject: [PATCH] Use `dart_host_toolchain` when building host binaries that depend on Dart --- engine/src/flutter/sky/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/sky/BUILD.gn b/engine/src/flutter/sky/BUILD.gn index 69148eeb32f..072744080c7 100644 --- a/engine/src/flutter/sky/BUILD.gn +++ b/engine/src/flutter/sky/BUILD.gn @@ -2,6 +2,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +import("//sky/engine/bindings/bindings.gni") + group("sky") { testonly = true @@ -10,9 +12,12 @@ group("sky") { "//sky/engine/wtf:unittests($host_toolchain)", "//sky/packages", "//sky/shell", - "//sky/tools/sky_snapshot($host_toolchain)", ] + if (dart_host_toolchain == host_toolchain) { + deps += [ "//sky/tools/sky_snapshot($dart_host_toolchain)" ] + } + if (is_linux || is_android) { deps += [ "//sky/shell/platform/mojo" ] }