From 801104ca691f7c8e83fc5eb8299af2a498f26081 Mon Sep 17 00:00:00 2001 From: Yumin Wu Date: Wed, 8 May 2024 21:52:59 +0800 Subject: [PATCH] add target --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 74438e7..296abef 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,8 +1,14 @@ +[target.x86_64-unknown-linux-musl] +linker = "rust-lld" +rustflags = ["-C", "linker-flavor=ld.lld"] + [target.aarch64-unknown-linux-gnu] linker = "aarch64-linux-gnu-gcc" + [target.aarch64-unknown-linux-musl] linker = "aarch64-linux-musl-gcc" rustflags = ["-C", "target-feature=+crt-static"] + [target.'cfg(all(windows, target_env = "msvc"))'] rustflags = ["-C", "target-feature=+crt-static"]