Index: build/config/BUILDCONFIG.gn |
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn |
index a71b4e2bd1334ea8427d0d8f93f3e36770259288..40f93dadea70586f0b0e514afa0dea18a4e56779 100644 |
--- a/build/config/BUILDCONFIG.gn |
+++ b/build/config/BUILDCONFIG.gn |
@@ -574,7 +574,11 @@ if (is_win) { |
} else { |
assert(false, "Unknown host for android cross compile") |
} |
- set_default_toolchain("//build/toolchain/android:$current_cpu") |
+ if (is_clang) { |
+ set_default_toolchain("//build/toolchain/android:clang_$current_cpu") |
+ } else { |
+ set_default_toolchain("//build/toolchain/android:$current_cpu") |
+ } |
} else if (is_linux) { |
if (is_clang) { |
host_toolchain = "//build/toolchain/linux:clang_$host_cpu" |