Skip to content

Commit eb40590

Browse files
authored
Rollup merge of #112685 - cuviper:wasm-dlmalloc, r=Mark-Simulacrum
std: only depend on dlmalloc for wasm*-unknown It was already filtered out for emscripten, but wasi doesn't need dlmalloc either since it reuses `unix/alloc.rs`.
2 parents 8d3d3cc + 886085a commit eb40590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
3838
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
3939
rand_xorshift = "0.3.0"
4040

41-
[target.'cfg(any(all(target_family = "wasm", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
41+
[target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
4242
dlmalloc = { version = "0.2.3", features = ['rustc-dep-of-std'] }
4343

4444
[target.x86_64-fortanix-unknown-sgx.dependencies]

0 commit comments

Comments
 (0)