Skip to content

feat(sys): allow skipping WASI SDK setup#648

Open
diogotcorreia wants to merge 4 commits intoDelSkayn:masterfrom
diogotcorreia:rquickjs-no-wasi-sdk
Open

feat(sys): allow skipping WASI SDK setup#648
diogotcorreia wants to merge 4 commits intoDelSkayn:masterfrom
diogotcorreia:rquickjs-no-wasi-sdk

Conversation

@diogotcorreia
Copy link

@diogotcorreia diogotcorreia commented Mar 14, 2026

Description of changes

Currently rquickjs-sys forces the WASI SDK to be used. However, in nixpkgs we do not use the WASI SDK but instead use the WASI libc directly. During our builds, CC and AR are already pointing to the correct binaries.
At the moment we are creating a temporary structure that resembles the WASI SDK just so the build succeeds, but it would be better if we didn't have to.

Therefore I added an env variable (RQUICKJS_SYS_NO_WASI_SDK, naming suggestions are welcome) that skips setup of the WASI SDK and places the burden of configuring the environment on whoever is building instead.

Checklist

  • Added change to the changelog
  • Created unit tests for my feature if needed

@diogotcorreia
Copy link
Author

I've tested this change by building https://github.com/extism/js-pdk with Nix and it works fine.

@diogotcorreia diogotcorreia requested a review from richarddd March 15, 2026 22:35
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