1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- build/rust/std/BUILD.gn.orig 2025-08-25 14:15:51 UTC
+++ build/rust/std/BUILD.gn
@@ -42,7 +42,6 @@ if (toolchain_has_rust) {
"rustc_demangle",
"std_detect",
"test",
- "unicode_width",
"unwind",
]
@@ -50,13 +49,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 +82,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",
|