How to recompile system libs (like WASM) for testing

37 views
Skip to first unread message

Andrew O'Mahony

unread,
Nov 21, 2023, 10:13:34 PM11/21/23
to emscripten-discuss
Hello,

I've made some changes to the system libs (WASM) that I want to test out.  However, I can't seem to get them to recompile both when I run the unit tests nor when I recompile my program that uses WASMFS.

How can I recompile the system libs?

Thanks,
Andrew

Alon Zakai

unread,
Nov 21, 2023, 10:41:37 PM11/21/23
to emscripte...@googlegroups.com
The simplest thing is

emcc --clear-cache

which deletes all built libraries. They are then rebuilt on demand next time you run emcc.

More generally, you can use embuilder. embuilder --help will show the available commands. (Note you need to use --force to rebuild an already built library.)

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/c23f871a-0f16-40b2-bb5f-88174690a701n%40googlegroups.com.

Andrew O'Mahony

unread,
Nov 22, 2023, 6:10:47 PM11/22/23
to emscripten-discuss
Thank you, that did it!

-Andrew

Reply all
Reply to author
Forward
0 new messages