summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-build_config_rust.gni
blob: b037f6e4a95b3daf382573b86a76d9dc7561810a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- build/config/rust.gni.orig	2025-07-02 06:08:04 UTC
+++ build/config/rust.gni
@@ -373,7 +373,11 @@ if (is_linux || is_chromeos) {
   }
 }
 
-if (toolchain_has_rust) {
+if (is_bsd) {
+  rust_abi_target = string_replace(rust_abi_target, "linux-gnu", current_os)
+}
+
+if (toolchain_has_rust && !is_bsd) {
   assert(rust_abi_target != "")
 
   _known_rust_target_triples_filepath = "//build/rust/known-target-triples.txt"