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 77bd30282c
commit 83d2f59b4b

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) {