diff --git a/.gitmodules b/.gitmodules index ca215355e..f2491b89b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "jemalloc-sys/jemalloc"] path = jemalloc-sys/jemalloc - url = https://github.com/tikv/jemalloc + url = https://github.com/reigadegr/jemalloc diff --git a/jemalloc-sys/build.rs b/jemalloc-sys/build.rs index 3fc5b9fe4..c941a4cd9 100644 --- a/jemalloc-sys/build.rs +++ b/jemalloc-sys/build.rs @@ -344,7 +344,7 @@ fn main() { } // GCC may generate a __atomic_exchange_1 library call which requires -latomic // during the final linking. https://github.com/riscv-collab/riscv-gcc/issues/12 - if target.contains("riscv") { + if target.contains("riscv") || target.contains("musl") { println!("cargo:rustc-link-lib=atomic"); } println!("cargo:rerun-if-changed=jemalloc");