You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mypyc] Add support for building mypyc code on WASM (python#13446)
### Description
This PR tweaks two things about how mypyc generates and builds C code to
better support WebAssembly. First, we search `sysconfig` for the size of
`size_t`, which works much better for cross-compiling. Second, newer
versions of clang have `-Wno-unused-but-set-variable` and so it is added
to the default list of arguments (this should probably land regardless
the decision on merging this PR).
## Test Plan
This PR depends on python#13445. To test
this PR, you can do the following:
*assuming mypy checkout with both PRs applied, must be on Python
3.10(!)*
```
$ pip install pyodide-build
$ pyodide build --exports pyinit backend-args --global-option=--use-mypyc
```
Note: you will get a warning about using `--global-option`, you can
ignore it for now. I'm trying to find out why `--build-option` isn't
working...
Co-authored-by: Shantanu <[email protected]>
0 commit comments