diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-03-21 09:30:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 14:30:43 +0100 |
commit | b4109375565c6d30d8ffb63f4083e0a430aee201 (patch) | |
tree | 2006b4c47711873199a2d8ac7ffc684e74a74448 /.cargo | |
parent | 45ef3c91c2348560a9a282b44f4b7b8b28929b6f (diff) |
chore: fix development issues on Windows (#14030)
Diffstat (limited to '.cargo')
-rw-r--r-- | .cargo/config | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.cargo/config b/.cargo/config index bb3ca44df..0c5791d5f 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,5 +1,14 @@ [target.x86_64-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] +[target.'cfg(all(windows, debug_assertions))'] +rustflags = [ + "-C", + "target-feature=+crt-static", + "-C", + # double the stack size to prevent swc overflowing the stack in debug + "link-arg=/STACK:2097152", +] + [target.aarch64-apple-darwin] rustflags = ["-C", "link-arg=-fuse-ld=lld"] |