Skip to content

Commit

Permalink
double default stack size (#61781)
Browse files Browse the repository at this point in the history
### Why?

Some packages require larger stack to compile correctly

Native build: https://github.com/vercel/next.js/actions/runs/7818270269


Closes PACK-2433

---------

Co-authored-by: OJ Kwon <1210596+kwonoj@users.noreply.github.com>
  • Loading branch information
sokra and kwonoj committed Feb 7, 2024
1 parent 13af19a commit 77ade43
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ rustdocflags = []

[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
rustflags = ["-C", "target-feature=+crt-static"]
rustflags = [
"-C", "target-feature=+crt-static",
"-C", "link-args=-Wl,-zstack-size=4194304",
]
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
rustflags = [
"-C", "target-feature=+crt-static",
"-C", "link-args=-Wl,-zstack-size=4194304",
]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
Expand All @@ -20,6 +26,7 @@ rustflags = [
"--cfg",
"tokio_unstable",
"-Zshare-generics=y",
"-C", "link-args=-Wl,-zstack-size=4194304",
"-Csymbol-mangling-version=v0",
"-Ctarget-feature=-crt-static",
"-Clink-arg=-lgcc",
Expand All @@ -28,6 +35,11 @@ rustflags = [
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

[target.'any(not(target.wasm32-unknown-unknown), not(wasm32-wasi-preview1-threads))']
rustflags = [
"-C", "link-args=-Wl,-zstack-size=4194304",
]

[target.'cfg(all())']
rustflags = [
"--cfg",
Expand Down

0 comments on commit 77ade43

Please sign in to comment.