| 1 |
[target.'cfg(all(target_family = "windows", target_env = "msvc"))'] |
| 2 |
linker = "rust-lld.exe" |
| 3 |
rustflags = [ |
| 4 |
# NOTE: on Windows, build with the static CRT, so that produced .exe files don't |
| 5 |
# depend on vcruntime140.dll; otherwise the user requires visual studio if they |
| 6 |
# download a raw .exe e.g. from the CI system |
| 7 |
"-Ctarget-feature=+crt-static", |
| 8 |
|
| 9 |
# Without this, at opt-level = 0 (dev profile) the compiler will generate code |
| 10 |
# with enough async futures that the default 1MiB stack will overflow. |
| 11 |
"-Clink-arg=/STACK:8388608" # 8MiB |
| 12 |
] |