--- build/config/rust.gni.orig 2024-11-14 07:57:23 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.