--- build/config/rust.gni.orig 2024-07-30 11:12:21 UTC +++ build/config/rust.gni @@ -270,6 +270,10 @@ if (is_linux || is_chromeos) { } } +if (is_bsd) { + rust_abi_target = string_replace(rust_abi_target, "linux-gnu", current_os) +} + assert(!toolchain_has_rust || rust_abi_target != "") # This variable is passed to the Rust libstd build.