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