mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
Windows: every executable links with an 8 MB main-thread stack, not raea.exe alone (#112)
The desktop app's raea-page-host.exe kept Windows' 1 MB default and overflowed it inside a window callback (0xc000041d) right after opening an MP4. .cargo/config.toml now passes /STACK:8388608 for both Windows MSVC targets, so raea-page-host, raea-rune-host and raea-perceive match raea.exe.
This commit is contained in:
1 parent
dfca0bcf12
commit
d70c8e6604
1 file changed
+9
@@ -3,6 +3,15 @@
|
||||
[target.aarch64-apple-darwin]
|
||||
linker = "tools/link-jit.sh"
|
||||
|
||||
# every Windows executable's main thread gets 8 MB of stack, as on macOS and Linux (Windows' default is 1 MB). The
|
||||
# desktop app's raea-page-host overflowed 1 MB inside a window callback (#112); engine/cli/build.rs did this for raea
|
||||
# alone. A DLL's link ignores /STACK.
|
||||
[target.x86_64-pc-windows-msvc]
|
||||
rustflags = ["-C", "link-arg=/STACK:8388608"]
|
||||
|
||||
[target.aarch64-pc-windows-msvc]
|
||||
rustflags = ["-C", "link-arg=/STACK:8388608"]
|
||||
|
||||
# no strip after linking: rustc's strip pass re-signs the binary and drops the entitlement (release has no debug info
|
||||
# of its own; std's stays)
|
||||
[profile.release]
|
||||
|
||||
Reference in new issue
Block a user