From b4e4a8b1aaeb5e32e87c62a36200791ce8a01ea6 Mon Sep 17 00:00:00 2001 From: Evan Ye Date: Sun, 10 Nov 2024 13:03:25 +0800 Subject: [PATCH] add cargo config --- .cargo/config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..b69d61c --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,9 @@ +[build] +target-dir = 'build/target' + +[target.x86_64-unknown-linux-musl] +rustflags = ["-C", "target-feature=-crt-static"] + +[target.aarch64-unknown-linux-musl] +linker = "aarch64-linux-musl-gcc" +rustflags = ["-C", "target-feature=-crt-static"]