Add support for building a static libobjc2 for WebAssembly - #422
Add support for building a static libobjc2 for WebAssembly#422HendrikHuebner wants to merge 1 commit into
Conversation
davidchisnall
left a comment
There was a problem hiding this comment.
These changes look fine, but is there a way to make the tests work in some command-line wasm runner?
I have not run the tests yet. For testing I created this repo, since tying everything together with the source build emscripten, clang etc is a bit cumbersome: https://github.com/HendrikHuebner/objc-wasm-tooling/tree/main/tests The repo contains a couple of tests and a (vibe-coded) Obj-C + Qt + libs-base demo. I can try running the tests and finding out what still fails. There are still many things I have not tested, and of course a few features are disabled for now. |
|
I was able to get the libobjc2 test suite running with all my patches applied. The tests are compiled into .js/.wasm pairs and ran with node.js There are a couple of failures:
So the function pointer mismatches still need to be fixed |
This PR does a few things:
Point 2 is not strictly necessary, so let me know if we should keep it.
We should ideally only land this after all of my other open PRs have been merged. On the Clang side the only thing missing is
@finallysupport.