summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-build_config_rust.gni
blob: 01d2b5e47998839ff8d2a7e5acc83a3fa176a069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- build/config/rust.gni.orig	2024-05-21 18:07:39 UTC
+++ build/config/rust.gni
@@ -272,6 +272,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.