Skip to content

WIP: Add --target emscripten#3052

Draft
ManuLinares wants to merge 30 commits intoc3lang:masterfrom
ManuLinares:target-emscripten
Draft

WIP: Add --target emscripten#3052
ManuLinares wants to merge 30 commits intoc3lang:masterfrom
ManuLinares:target-emscripten

Conversation

@ManuLinares
Copy link
Copy Markdown
Member

@ManuLinares ManuLinares commented Mar 21, 2026

Very very much a work in progress alpha.

  • Added default linker flags to test and benchmark only.

All unit tests pass:

./build/c3c compile-test -O1 --target emscripten -o test.js test/unit/ && node test.js

Fixes: #2950

edit:

  • Disabled unsupported POSIX process spawning/tests on Emscripten to fix posix_spawnp linker errors.

ManuLinares and others added 29 commits March 20, 2026 11:43
TODO: clean this
also bypass the unreachable of longjmp for easier testing
I see the headers, but i get a symbol not defined :(
@ManuLinares
Copy link
Copy Markdown
Member Author

ManuLinares commented Apr 9, 2026

I've merged the latest isz/sz change. I'm hoping to get more eyes on this.

This is still WIP until somebody reviews it or I get more time to properly test. 32bit systems like this one aren't fully stdlib tested.

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.

Create Emscripten target

2 participants