aports/testing/sydbox/32b-default-malloc_patch
omni 2dff03600e testing/sydbox: upgrade to 3.48.4
- add new core utility syd-tsc
- align patches
- remove no longer needed patch
- default malloc is used for 32bit architectures
- build with thin LTO to avoid OOM issues, mainly on aarch64 & x86_64
2026-03-16 22:10:49 +01:00

50 lines
1.4 KiB
Plaintext

Our 32bit builders don't need to try and fetch hardened-malloc, unsupported on
those architectures, we'll use the default malloc instead
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -442,8 +442,6 @@ tracing-subscriber = { version = "0.3",
# GrapheneOS does not support 32-bit.
# GrapheneOS does not cross compile to android.
# Without small feature, riscv64 fails on cfarm9{4,5}.
-[target.'cfg(all(target_pointer_width = "64", not(target_os = "android")) )'.dependencies]
-hardened-malloc = { version = "13.0.0", default-features = false, features = ["tiny"] }
[build-dependencies]
pkg-config = "0.3"
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -763,24 +763,6 @@ dependencies = [
]
[[package]]
-name = "hardened-malloc"
-version = "13.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30194fcf44353db8cebecd80fcff611ec9b1323e7d98ccac611798169273832a"
-dependencies = [
- "hardened-malloc-sys",
-]
-
-[[package]]
-name = "hardened-malloc-sys"
-version = "13.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b142031155aba371b653dc55e0c164bb768adb1261105f87272b6721336f6466"
-dependencies = [
- "cc",
-]
-
-[[package]]
name = "hashbrown"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2094,7 +2076,6 @@ dependencies = [
"fixedbitset",
"goblin",
"gperftools",
- "hardened-malloc",
"iced-x86",
"indexmap 2.13.0",
"io-uring",