From abdf8f1f396ea9c7dd88d714545452ba66e69f55 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Sat, 9 Mar 2024 10:23:25 +0000 Subject: [PATCH] ci: add mold support --- .cargo/config.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..cf2eb55 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,11 @@ +[target.aarch64-unknown-linux-musl] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=mold"] + +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=mold"] + +[target.x86_64-unknown-linux-musl] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=mold"]