Skip to content
Myr

fix: disable jemalloc on risc-v target

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`jemallocator` does not support risc-v and fails the compilation. This fixes build for risc-v.

authored by Yujia Qiao · committed by David Peter · parent 30add71 · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:src/main.rs+1 added
38 unmodified lines
39 not(target_os = "android"),40 not(target_os = "macos"),41 not(target_os = "freebsd"),42 not(target_env = "musl"),43 not(target_arch = "riscv64"),44 feature = "use-jemalloc"45))]46#[global_allocator]47static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
521 unmodified lines
modified:Cargo.toml+2 added-2 removed