Use clang as host compiler on android with gn too.
This ports https://codereview.chromium.org/430383002/ to gn. Patch from brettw in https://codereview.chromium.org/385823002/ , this just activates it. BUG=360311 R=brettw@chromium.org Review URL: https://codereview.chromium.org/426533003 git-svn-id: http://src.chromium.org/svn/trunk/src/build@287416 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
bbe4d1e144
Коммит
6a4a3e6a0e
|
@ -455,12 +455,11 @@ if (is_win) {
|
|||
}
|
||||
} else if (is_android) {
|
||||
# Use clang for the x86/64 Linux host builds.
|
||||
# (Disabled until the Clang build works properly.)
|
||||
#if (build_cpu_arch == "x86" || build_cpu_arch == "x64") {
|
||||
# host_toolchain = "//build/toolchain/linux:clang_$build_cpu_arch"
|
||||
#} else {
|
||||
if (build_cpu_arch == "x86" || build_cpu_arch == "x64") {
|
||||
host_toolchain = "//build/toolchain/linux:clang_$build_cpu_arch"
|
||||
} else {
|
||||
host_toolchain = "//build/toolchain/linux:$build_cpu_arch"
|
||||
#}
|
||||
}
|
||||
set_default_toolchain("//build/toolchain/android:$cpu_arch")
|
||||
} else if (is_linux) {
|
||||
if (is_clang) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче