Add use-system-allocator to not use jemalloc (#31443)

* Add `use-system-allocator` feature

* Allow `servo_allocator/use-system-allocator` on servoshell
This commit is contained in:
Samson 2024-02-29 09:43:03 +01:00 committed by GitHub
parent cd92a17c5e
commit 9a9abe9152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 3 deletions

View file

@ -9,9 +9,13 @@ publish = false
[lib]
path = "lib.rs"
[features]
use-system-allocator = ["libc"]
[target.'cfg(not(any(windows, target_os = "android")))'.dependencies]
jemallocator = { workspace = true }
jemalloc-sys = { workspace = true }
libc = { workspace = true, optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { workspace = true, features = ["heapapi"] }