From 83d2f59b4b84cf33605bcf3652a465f2b546cc72 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 6 Feb 2020 03:06:50 +0800 Subject: [PATCH] build: Don't use target_sysroot for host_toolchain protoc should be built with the host toolchain, usually not needing the sysroot. --- src/build/config/sysroot.gni | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build/config/sysroot.gni b/src/build/config/sysroot.gni index ee2ecb9927..8ec0d8a62e 100644 --- a/src/build/config/sysroot.gni +++ b/src/build/config/sysroot.gni @@ -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) {