2020-09-24 05:55:33 +02:00
|
|
|
[target.x86_64-pc-windows-msvc]
|
2022-06-06 02:01:01 +02:00
|
|
|
# increase the default windows stack size
|
|
|
|
# statically link the CRT so users don't have to install it
|
2022-11-11 22:22:26 +01:00
|
|
|
rustflags = ["-C", "link-args=-stack:10000000", "-C", "target-feature=+crt-static"]
|
2022-03-22 14:27:48 +01: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 15:41:06 +01: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 22:22:26 +01:00
|
|
|
# rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|