From 5aa776cfb763eeee5a1234a7abe1ba9e979a21e0 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Mon, 8 Apr 2024 16:49:51 +0200 Subject: [PATCH] feat: Statically link C runtime on `-musl` targets --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..5adae5e04 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[target.x86_64-unknown-linux-musl] +rustflags = "-Ctarget-feature=-crt-static" + +[target.aarch64-unknown-linux-musl] +rustflags = "-Ctarget-feature=-crt-static"