From 7c614f47f10537f00a4f622b82ace0e113dad300 Mon Sep 17 00:00:00 2001 From: reigadegr <272268642@qq.com> Date: Sun, 10 Aug 2025 16:17:53 +0000 Subject: [PATCH 1/3] jemalloc-sys: link atomic library for musl targets Fixes build failures on `*-unknown-linux-musl` targets. Signed-off-by: reigadegr <2722688642@qq.com> --- jemalloc-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); From b0d64ce3881fcd55b2850b25959631262d3e589a Mon Sep 17 00:00:00 2001 From: reigadegr <272268642@qq.com> Date: Mon, 11 Aug 2025 06:37:51 +0000 Subject: [PATCH 2/3] refactor: The sub-module repository has been changed to jemalloc/jemalloc. Signed-off-by: reigadegr <2722688642@qq.com> --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index ca215355e..04dd40a57 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/jemalloc/jemalloc From 8bf14f246776671c9b22888904da8db9ce1a9e72 Mon Sep 17 00:00:00 2001 From: reigadegr <103645642+reigadegr@users.noreply.github.com> Date: Sat, 16 Aug 2025 09:04:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20.gitmodules:=20=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 04dd40a57..f2491b89b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "jemalloc-sys/jemalloc"] path = jemalloc-sys/jemalloc - url = https://github.com/jemalloc/jemalloc + url = https://github.com/reigadegr/jemalloc