git: d7a8c7e76b85 - main - www/chromium: unbreak with rust < 1.89
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Sep 2025 18:30:21 UTC
The branch main has been updated by rnagy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d7a8c7e76b85da4c340babd701e2e9088568daa9
commit d7a8c7e76b85da4c340babd701e2e9088568daa9
Author: Robert Nagy <rnagy@FreeBSD.org>
AuthorDate: 2025-09-08 18:29:27 +0000
Commit: Robert Nagy <rnagy@FreeBSD.org>
CommitDate: 2025-09-08 18:30:15 +0000
www/chromium: unbreak with rust < 1.89
---
www/chromium/files/patch-build_rust_allocator_lib.rs | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/www/chromium/files/patch-build_rust_allocator_lib.rs b/www/chromium/files/patch-build_rust_allocator_lib.rs
new file mode 100644
index 000000000000..9f0e0b27b8f8
--- /dev/null
+++ b/www/chromium/files/patch-build_rust_allocator_lib.rs
@@ -0,0 +1,15 @@
+--- build/rust/allocator/lib.rs.orig 2025-09-08 09:17:21 UTC
++++ build/rust/allocator/lib.rs
+@@ -90,6 +90,12 @@ mod both_allocators {
+ #[linkage = "weak"]
+ fn __rust_no_alloc_shim_is_unstable_v2() {}
+
++ // TODO(crbug.com/422538133) Remove after rolling past
++ // https://github.com/rust-lang/rust/pull/141061
++ #[no_mangle]
++ #[linkage = "weak"]
++ static __rust_no_alloc_shim_is_unstable: u8 = 0;
++
+ // Mangle the symbol name as rustc expects.
+ #[rustc_std_internal_symbol]
+ #[allow(non_upper_case_globals)]