--- build/config/rust.gni.orig 2024-11-16 12:20:41 UTC +++ build/config/rust.gni @@ -321,6 +321,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.