lightningdevkit / ldk-c-bindings

Main LDK C Bindings on which other bindings are built
Other
13 stars 14 forks source link

Optimize more aggressively for WASM builds #57

Closed TheBlueMatt closed 2 years ago

TheBlueMatt commented 2 years ago

Use -Oz instead of -Os because why not, and include LLVM bitcode in C dependencies.

This reduces liblightningjs_release.wasm from 3.0MB to 2.3MB!

TheBlueMatt commented 2 years ago

Just moar embed-bitcode, really.