From 632812cf48677204e4ca1f7a6c158e2de15eaea5 Mon Sep 17 00:00:00 2001 From: Luca P Date: Fri, 11 Mar 2022 22:43:32 +0000 Subject: [PATCH] Add linker configuration --- .cargo/config.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..c2ac2b6 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,14 @@ +[target.x86_64-unknown-linux-gnu] +rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] + +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "link-arg=-fuse-ld=lld"] + +[target.x86_64-pc-windows-gnu] +rustflags = ["-C", "link-arg=-fuse-ld=lld"] + +[target.x86_64-apple-darwin] +rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"] + +[target.aarch64-apple-darwin] +rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"]