build: Don't use target_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 ac2142ed6e
commit 6ca5d58989

View File

@ -21,6 +21,7 @@ declare_args() {
}
if (current_os == target_os && current_cpu == target_cpu &&
current_toolchain == default_toolchain &&
target_sysroot != "") {
sysroot = target_sysroot
} else if (is_android) {