summaryrefslogtreecommitdiff
path: root/devel/electron38/files/patch-build_config_rust.gni
blob: b9a27a5bae7eba1fe9ec50dd2c37c437fef60d78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- build/config/rust.gni.orig	2025-08-26 20:49:50 UTC
+++ build/config/rust.gni
@@ -369,7 +369,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"