Fix gn breakage on Fuchsia macOS host builds (flutter/engine#11016)

When building Fuchsia on macOS hosts, ensure that we reference the
correct clang toolchain path. This patch also prevents bitcode
compilation on Fuchsia tree builds on macOS.
This commit is contained in:
Chris Bracken
2019-08-14 18:21:40 -07:00
committed by GitHub
parent 3ad272ccda
commit 7b02398ee0

View File

@@ -6,7 +6,7 @@ if (is_android) {
import("//build/config/android/config.gni")
}
if (is_fuchsia) {
if (is_fuchsia || is_fuchsia_host) {
import("//build/fuchsia/sdk.gni")
}
@@ -15,7 +15,11 @@ if (target_cpu == "arm" || target_cpu == "arm64") {
}
if (is_ios || is_mac) {
import("//build/toolchain/clang.gni")
if (using_fuchsia_sdk) {
import("//build/toolchain/clang.gni")
} else {
import("//build/toolchain/clang_toolchain.gni")
}
}
declare_args() {
@@ -53,6 +57,6 @@ if (is_fuchsia && using_fuchsia_sdk) {
feature_defines_list += [ "FUCHSIA_SDK=1" ]
}
if (is_ios || is_mac) {
if ((is_ios || is_mac) && defined(enable_bitcode)) {
flutter_enable_bitcode = enable_bitcode
}