--- build/toolchain/sysroot.gni.orig 2026-05-26 07:21:16 UTC +++ build/toolchain/sysroot.gni @@ -7,8 +7,8 @@ declare_args() { # is empty, default sysroot is calculated. # Move the argument here to avoid complex dependencies and dependency loop # as this is needed by files in both config and toolchain directories. - use_sysroot = - current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm" || - current_cpu == "arm64" || current_cpu == "mipsel" || - current_cpu == "mips64el" || current_cpu == "riscv64" + use_sysroot = !is_bsd && + (current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm" || + current_cpu == "arm64" || current_cpu == "mipsel" || + current_cpu == "mips64el" || current_cpu == "riscv64") }