Skip to content

Make dev vs stable ABI layouts conditional on DevBuild#352

Closed
tomohisa wants to merge 1 commit intobytecodealliance:mainfrom
J-Tech-Japan:pr/devbuild-abi
Closed

Make dev vs stable ABI layouts conditional on DevBuild#352
tomohisa wants to merge 1 commit intobytecodealliance:mainfrom
J-Tech-Japan:pr/devbuild-abi

Conversation

@tomohisa
Copy link

@tomohisa tomohisa commented Feb 1, 2026

Summary

  • Add WASMTIME_DEV define when DevBuild=true.
  • Switch Value/AnyRef/ExternRef layouts and TrapCode enum between dev/stable.
  • Document DevBuild switch in README.

Why

Dev snapshots changed ABI/TrapCode; stable 35.0.0 expects the older layout. This avoids mismatches.

Tests

  • dotnet test tests/Wasmtime.Tests.csproj -c Release -p:DevBuild=true
  • dotnet test tests/Wasmtime.Tests.csproj -c Release -p:DevBuild=false

Notes

If switching DevBuild modes, you may need to delete src/obj to force re-download of C API artifacts.

Risk

Medium. Changes are behind build-time flags and default to current dev behavior.

@tomohisa tomohisa marked this pull request as draft February 1, 2026 06:42
@tomohisa
Copy link
Author

tomohisa commented Feb 1, 2026

Superseded by #355. The DevBuild ABI toggle is included
there and CI is green.

@tomohisa tomohisa closed this Feb 1, 2026
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.

1 participant