Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tail calls being turned on by default #8682

Merged
merged 3 commits into from
May 22, 2024

Conversation

alexcrichton
Copy link
Member

Logic in Config to conditionally enable tail calls wasn't handling the case where the configured compiler strategy was Strategy::Auto meaning that by default tail calls weren't actually enabled. This commit refactors handling of Strategy to avoid storing Strategy::Auto in CompilerConfig so tests against it can use either cranelift or winch.

Logic in `Config` to conditionally enable tail calls wasn't handling the
case where the configured compiler strategy was `Strategy::Auto` meaning
that by default tail calls weren't actually enabled. This commit
refactors handling of `Strategy` to avoid storing `Strategy::Auto` in
`CompilerConfig` so tests against it can use either cranelift or winch.
@alexcrichton alexcrichton requested a review from a team as a code owner May 22, 2024 20:56
@alexcrichton alexcrichton requested review from pchickey and removed request for a team May 22, 2024 20:56
@alexcrichton alexcrichton added this pull request to the merge queue May 22, 2024
Merged via the queue into bytecodealliance:main with commit 4896b66 May 22, 2024
36 checks passed
@alexcrichton alexcrichton deleted the enable-tail-calls branch May 22, 2024 21:37
CryZe added a commit to CryZe/website that referenced this pull request Jun 9, 2024
Apparently the situation is a little bit complicated. The feature is enabled since [21](https://github.com/bytecodealliance/wasmtime/blob/release-21.0.0/RELEASES.md#added), but only for the Cranelift backend, except for the s390x architecture.

However, the feature was accidentally not active until [22](bytecodealliance/wasmtime#8682).

Also wasmtime 22 isn't out yet (should come out June 17th).
dschuff pushed a commit to WebAssembly/website that referenced this pull request Jun 10, 2024
Apparently the situation is a little bit complicated. The feature is
enabled since [Version
21](https://github.com/bytecodealliance/wasmtime/blob/release-21.0.0/RELEASES.md#added),
but only for the Cranelift backend, except for the s390x architecture.

However, the feature was accidentally not active until [Version
22](bytecodealliance/wasmtime#8682).

Also wasmtime 22 isn't out yet (should come out June 17th).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants