Skip to content

Conversation

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Nov 24, 2025

Cherry-pick of #2026.

Explanation: The default of 64K for stack size is too low, especially as tail calls are not available by default on Wasm. It also means Swift Testing is unusable in main development snapshots due to stack overflows.

Scope: Limited to Wasm support.
Risk: Low due to isolated scope.
Testing: Added automated end-to-end test in swiftlang/swift-integration-tests#167.
Issue: rdar://160218251
Reviewer: @kateinoigakukun

The default of 64K is too low, especially as tail calls are not available by default on Wasm. It also means Swift Testing is unusable in `main` development snapshots due to stack overflows.

rdar://160218251
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

The current invocation as is leads to `wasm-ld: error: unknown argument: --stack-size=131072`
Adjust `SwiftDriverTests/testLinking` for correct CLI options format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants