mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-06 03:51:08 +00:00
28e983e191
1 commits, squashed; the originals stay reachable from branch jyviko/merge-main-develop-solidcore (#11360).
- 7ad1d3e12 jyviko: diagnostics.kernel takes a typed contract, as main's other diagnostics commands do
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
10 lines
396 B
Rust
10 lines
396 B
Rust
//! Links the browser build with an 8 MiB stack: solidcore's kernel algorithms (subdivision,
|
|
//! intersection, filleting) recurse legitimately, and wasm has no guard page to catch an
|
|
//! overflow (solidcore's README recommends 8 MiB).
|
|
|
|
fn main() {
|
|
if std::env::var("CARGO_CFG_TARGET_ARCH").is_ok_and(|a| a == "wasm32") {
|
|
println!("cargo:rustc-link-arg=-zstack-size=8388608");
|
|
}
|
|
}
|