diff options
Diffstat (limited to 'devel/electron36/files/patch-build_config_rust.gni')
| -rw-r--r-- | devel/electron36/files/patch-build_config_rust.gni | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/devel/electron36/files/patch-build_config_rust.gni b/devel/electron36/files/patch-build_config_rust.gni index f4a09c1206c3..ce4c4bfe1255 100644 --- a/devel/electron36/files/patch-build_config_rust.gni +++ b/devel/electron36/files/patch-build_config_rust.gni @@ -1,13 +1,23 @@ ---- build/config/rust.gni.orig 2025-04-22 20:15:27 UTC +--- build/config/rust.gni.orig 2025-06-16 18:02:10 UTC +++ build/config/rust.gni -@@ -346,6 +346,10 @@ if (is_linux || is_chromeos) { - } - } +@@ -69,7 +69,8 @@ declare_args() { + # set this to the output of `rustc -V`. Changing this string will cause all + # Rust targets to be rebuilt, which allows you to update your toolchain and + # not break incremental builds. +- rustc_version = "" ++ rustc_version = exec_script("//build/gn_run_binary.py", ++ [ "${LOCALBASE}/bin/rustc", "-V" ], "trim string") -+if (is_bsd) { -+ rust_abi_target = string_replace(rust_abi_target, "linux-gnu", current_os) + # If you're using a Rust toolchain as specified by rust_sysroot_absolute, + # you can specify whether it supports nacl here. +@@ -344,6 +345,10 @@ if (is_linux || is_chromeos) { + } else { + assert(false, "Architecture not supported") + } +} + - assert(!toolchain_has_rust || rust_abi_target != "") ++if (is_bsd) { ++ rust_abi_target = string_replace(rust_abi_target, "linux-gnu", current_os) + } - # This variable is passed to the Rust libstd build. + assert(!toolchain_has_rust || rust_abi_target != "") |
