From 0137d9e06287eafa5741ffe696fcbd33409dc6a8 Mon Sep 17 00:00:00 2001 From: Vo Van Nghia Date: Tue, 23 Jan 2024 08:53:28 +0700 Subject: [PATCH] ci: use lld and mold linker --- .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 00000000..df48d0cc --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[target.'cfg(target_os = "linux")'] +rustflags = ["-C", "link-arg=-fuse-ld=mold"] + +[target.'not(cfg(target_os = "linux"))'] +rustflags = ["-C", "link-arg=-fuse-ld=lld"]