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.
@MaxDesiatov MaxDesiatov marked this pull request as ready for review December 1, 2025 16:47
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) December 1, 2025 21:51
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test linux

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test linux

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.

3 participants