material: Avoid stack overflows on Windows

Apply guidance from https://docs.slint.dev/latest/docs/slint/guide/platforms/desktop/#rust-stack-overflows


Imported from 42e31d7ea7
This commit is contained in:
Simon Hausmann 2025-06-26 09:21:09 +02:00 committed by Olivier Goffart
parent 503cba7043
commit 95d16d5482

View file

@ -0,0 +1,15 @@
# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: MIT
[target.x86_64-pc-windows-msvc]
# Increase default stack size to avoid running out of stack
# space in debug builds. The size matches Linux's default.
rustflags = [
"-C", "link-arg=/STACK:8000000"
]
[target.aarch64-pc-windows-msvc]
# Increase default stack size to avoid running out of stack
# space in debug builds. The size matches Linux's default.
rustflags = [
"-C", "link-arg=/STACK:8000000"
]