From f1118020a1d15be9e1d9664c3fbb4e35da31687c Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 10 Nov 2022 08:41:06 -0600 Subject: [PATCH] add commented out mold linker usage (#7081) --- .cargo/config.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 5e5df7c78e..32f73a85ed 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -12,3 +12,17 @@ rustflags = ["-C", "link-args=-stack:10000000", "-C", "target-feature=+crt-stati # set a 2 gb stack size (0x80000000 = 2147483648 bytes = 2 GB) # [target.x86_64-apple-darwin] # rustflags = ["-C", "link-args=-Wl,-stack_size,0x80000000"] + +# How to use mold in linux and mac + +# [target.x86_64-unknown-linux-gnu] +# linker = "clang" +# rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/mold"] + +# [target.x86_64-apple-darwin] +# linker = "clang" +# rustflags = ["-C", "link-arg=-fuse-ld=mold"] + +# [target.aarch64-apple-darwin] +# linker = "clang" +# rustflags = ["-C", "link-arg=-fuse-ld=mold"] \ No newline at end of file