diff options
Diffstat (limited to '.cargo/config')
| -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"] |
