summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-build_config_rust.gni
blob: 803ef95b68e8f70a8a7d6a2c3eab396f4781f010 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- build/config/rust.gni.orig	2025-02-20 09:59:21 UTC
+++ build/config/rust.gni
@@ -297,6 +297,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.