diff --git a/src/build/config/sysroot.gni b/src/build/config/sysroot.gni index 31547120af..a621bbb54e 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) { + sysroot = "" +} + if (sysroot == "") { if (current_os == target_os && current_cpu == target_cpu && target_sysroot != "") {