mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
32 lines
957 B
Text
32 lines
957 B
Text
--- build/rust/std/BUILD.gn.orig 2025-04-05 13:54:50 UTC
|
|
+++ build/rust/std/BUILD.gn
|
|
@@ -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 = [
|
|
- "profiler_builtins",
|
|
"rustc_std_workspace_alloc",
|
|
"rustc_std_workspace_core",
|
|
"rustc_std_workspace_std",
|