2020-09-24 03:55:33 +00:00
|
|
|
[target.x86_64-pc-windows-msvc]
|
2022-06-06 00:01:01 +00:00
|
|
|
# increase the default windows stack size
|
|
|
|
# statically link the CRT so users don't have to install it
|
2022-11-11 21:22:26 +00:00
|
|
|
rustflags = ["-C", "link-args=-stack:10000000", "-C", "target-feature=+crt-static"]
|
2022-03-22 13:27:48 +00:00
|
|
|
|
|
|
|
# keeping this but commentting out in case we need them in the future
|
|
|
|
|
|
|
|
# set a 2 gb stack size (0x80000000 = 2147483648 bytes = 2 GB)
|
|
|
|
# [target.x86_64-unknown-linux-gnu]
|
|
|
|
# rustflags = ["-C", "link-args=-Wl,-z stack-size=0x80000000"]
|
|
|
|
|
|
|
|
# set a 2 gb stack size (0x80000000 = 2147483648 bytes = 2 GB)
|
|
|
|
# [target.x86_64-apple-darwin]
|
|
|
|
# rustflags = ["-C", "link-args=-Wl,-stack_size,0x80000000"]
|
2022-11-10 14:41:06 +00:00
|
|
|
|
|
|
|
# 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"
|
2022-11-11 21:22:26 +00:00
|
|
|
# rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|