Skip to content

Fixed pre-release wasm32-wasip(\d) targets not enabling wasi compile flags in bundled mode.#1569

Merged
gwenn merged 1 commit intorusqlite:masterfrom
Earthmark:earthmark/wasi_build
Oct 5, 2024
Merged

Fixed pre-release wasm32-wasip(\d) targets not enabling wasi compile flags in bundled mode.#1569
gwenn merged 1 commit intorusqlite:masterfrom
Earthmark:earthmark/wasi_build

Conversation

@Earthmark
Copy link
Contributor

@Earthmark Earthmark commented Sep 24, 2024

The wasm32-wasi target is being deprecated in favor of pre-release targets like wasm32-wasip(\d).

This instead matches the prefix wasi target, so any future pre-releases will probably, maybe, work out of the box.

…mode.

wasm32-wasi is being deprecated in favor of pre-release targets like `wasm32-wasip\d`.

This instead matches the prefix wasi target, so any future pre-releases will probably, maybe work out of the box.
@Earthmark Earthmark changed the title Pre-release wasi targets not enabling wasi flags properly in bundled mode. Fixed pre-release wasm32-wasi(\d) targets not enabling wasi compile flags in bundled mode. Sep 24, 2024
@Earthmark Earthmark changed the title Fixed pre-release wasm32-wasi(\d) targets not enabling wasi compile flags in bundled mode. Fixed pre-release wasm32-wasip(\d) targets not enabling wasi compile flags in bundled mode. Sep 24, 2024
@Earthmark
Copy link
Contributor Author

wasm32-wasip1-threads may need a more complicated solution, but this at least works for wasm32-wasip1 and wasm32-wasip2.

@codecov
Copy link

codecov bot commented Sep 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.92%. Comparing base (9568027) to head (31cdeda).
Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1569   +/-   ##
=======================================
  Coverage   85.92%   85.92%           
=======================================
  Files          57       57           
  Lines       10670    10670           
=======================================
  Hits         9168     9168           
  Misses       1502     1502           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gwenn
Copy link
Collaborator

gwenn commented Sep 28, 2024

@thomcc If possible, could you please help me validate this PR (because I know nothing about wasm) ?

@Earthmark
Copy link
Contributor Author

As a note on this, wasm32-wasi was supported previously, that target was renamed to wasm32-wasip1, which is what caused the build issue. The target itself is the same to my knowledge.

For that build target at least, this would be identical. There is p2 on nightly, but my goal here was getting the renamed version of p1 building.

@gwenn
Copy link
Collaborator

gwenn commented Oct 5, 2024

@gwenn gwenn merged commit 4d8b8e7 into rusqlite:master Oct 5, 2024
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