build: Don't use sysroot for host_toolchain

protoc should be built with the host toolchain, usually not needing
the sysroot.
This commit is contained in:
klzgrad 2020-02-06 03:06:50 +08:00
parent 1120f63c39
commit 69a6617c0f

View File

@ -26,6 +26,10 @@ declare_args() {
current_cpu == "mipsel" || current_cpu == "mips64el" current_cpu == "mipsel" || current_cpu == "mips64el"
} }
if (current_toolchain == host_toolchain) {
sysroot = ""
}
if (sysroot == "") { if (sysroot == "") {
if (current_os == target_os && current_cpu == target_cpu && if (current_os == target_os && current_cpu == target_cpu &&
target_sysroot != "") { target_sysroot != "") {