From f08e8be7cd4d47f5e53262f544b71a92e454eb49 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Thu, 6 Feb 2020 03:06:50 +0800 Subject: [PATCH] build: Don't use sysroot for host_toolchain protoc should be built with the host toolchain, usually not needing the sysroot. --- src/build/config/sysroot.gni | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/build/config/sysroot.gni b/src/build/config/sysroot.gni index 18d2d57362..c1b2b8f6e8 100644 --- a/src/build/config/sysroot.gni +++ b/src/build/config/sysroot.gni @@ -26,6 +26,10 @@ declare_args() { current_cpu == "mipsel" || current_cpu == "mips64el" } +if (current_toolchain == host_toolchain && host_toolchain == "//build/toolchain/linux:clang_x64") { + sysroot = "" +} + if (sysroot == "") { if (current_os == target_os && current_cpu == target_cpu && target_sysroot != "") {