diff options
Diffstat (limited to 'devel/electron38/files/patch-build_rust_std_BUILD.gn')
| -rw-r--r-- | devel/electron38/files/patch-build_rust_std_BUILD.gn | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/devel/electron38/files/patch-build_rust_std_BUILD.gn b/devel/electron38/files/patch-build_rust_std_BUILD.gn new file mode 100644 index 000000000000..13c2985f1be5 --- /dev/null +++ b/devel/electron38/files/patch-build_rust_std_BUILD.gn @@ -0,0 +1,32 @@ +--- build/rust/std/BUILD.gn.orig	2025-06-30 07:04:30 UTC ++++ build/rust/std/BUILD.gn +@@ -50,13 +50,20 @@ if (toolchain_has_rust) { +     # These are no longer present in the Windows toolchain. +     stdlib_files += [ +       "addr2line", +-      "adler2", +       "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) { +@@ -76,7 +83,6 @@ if (toolchain_has_rust) { +   # don't need to pass to the C++ linker because they're used for specialized +   # purposes. +   skip_stdlib_files = [ +-    "profiler_builtins", +     "rustc_std_workspace_alloc", +     "rustc_std_workspace_core", +     "rustc_std_workspace_std", | 
