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
I don’t know how CMake works, so I’m reluctant to add a dependency on CMake to this project. If you want to maintain the quickjs-ng variants I’m happy to accept a PR updating the build process to work with quickjs-ng 7
I think one issue I encountered trying to adapt newer quickjs-ng is that it’s harder to enable malloc_usable_size and other memory accounting features in quickjs-ng for Emscripten environment. Emscripten appears to provide a malloc_usable_size but perhaps the original authors thought it’s a useless feature in web? Or maybe it has bugs? But between cmake being intimidating and some of the ifdef changes I gave up on quickjs-ng
Activity
justjake commentedon Nov 26, 2024
I don’t know how CMake works, so I’m reluctant to add a dependency on CMake to this project. If you want to maintain the quickjs-ng variants I’m happy to accept a PR updating the build process to work with quickjs-ng 7
p-bakker commentedon Dec 30, 2024
Afraid I probably know less than you about how CMake works... :-/
saghul commentedon Jan 30, 2025
@justjake Hey there! Can you point me to where you build quickjs? I can help.
justjake commentedon Jan 31, 2025
@saghul id appreciate the support. I template Variant.mk into each variant, then run
makeper variant to produce the final wasm and/or js filesjustjake commentedon Jan 31, 2025
Here’s the make rule for quickjs:
quickjs-emscripten/templates/Variant.mk
Line 151 in aa48b61
justjake commentedon Jan 31, 2025
I think one issue I encountered trying to adapt newer quickjs-ng is that it’s harder to enable malloc_usable_size and other memory accounting features in quickjs-ng for Emscripten environment. Emscripten appears to provide a malloc_usable_size but perhaps the original authors thought it’s a useless feature in web? Or maybe it has bugs? But between cmake being intimidating and some of the ifdef changes I gave up on quickjs-ng
saghul commentedon Feb 3, 2025
I'll look into this.