mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
cd92a17c5e
commit
9a9abe9152
4 changed files with 19 additions and 3 deletions
|
@ -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"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue