WASM-less compiling

Is there a way to compile Cheerp code into a single JS target without any extra WASM support when it's unnecessary? Currently, my understanding is that both cheerp and cheerp-wasm produce WASM output regardless of whether non-genericjs functions are called or not. Is that correct?
3 Replies
apignotti
apignotti9mo ago
No, that is not correct. When compiling with -target cheerp your will get a pure JS output
Awesome
AwesomeOP9mo ago
Ahh, okay, my bad, the toolchain I tested on used CheerpWASMToolchain.cmake instead of CheerpToolchain.cmake which resulted in ignoring the set cheerp's target, which made me also think that it's not working, now while I tested it on the actual one everything works as it should
apignotti
apignotti9mo ago
👍
Want results from more Discord servers?
Add your server