summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/electron33/files/patch-build_rust_std_BUILD.gn26
1 files changed, 24 insertions, 2 deletions
diff --git a/devel/electron33/files/patch-build_rust_std_BUILD.gn b/devel/electron33/files/patch-build_rust_std_BUILD.gn
index f40de14fbd97..473f4c097e4b 100644
--- a/devel/electron33/files/patch-build_rust_std_BUILD.gn
+++ b/devel/electron33/files/patch-build_rust_std_BUILD.gn
@@ -1,6 +1,28 @@
---- build/rust/std/BUILD.gn.orig 2024-08-14 20:54:23 UTC
+--- build/rust/std/BUILD.gn.orig 2025-04-05 13:54:50 UTC
+++ build/rust/std/BUILD.gn
-@@ -100,7 +100,6 @@ if (toolchain_has_rust) {
+@@ -89,13 +89,20 @@ if (toolchain_has_rust) {
+ # These are no longer present in the Windows toolchain.
+ stdlib_files += [
+ "addr2line",
+- "adler",
+ "gimli",
+ "libc",
+ "memchr",
+ "miniz_oxide",
+ "object",
+ ]
++
++ rust_revision_pieces = string_split(rustc_revision, " ")
++ rust_version_pieces = string_split(rust_revision_pieces[1], ".")
++ if (rust_version_pieces[1] == "85") {
++ stdlib_files += [ "adler" ]
++ } else {
++ stdlib_files += [ "adler2" ]
++ }
+ }
+
+ if (toolchain_for_rust_host_build_tools) {
+@@ -115,7 +122,6 @@ if (toolchain_has_rust) {
# don't need to pass to the C++ linker because they're used for specialized
# purposes.
skip_stdlib_files = [