blurhash-c-wasm/Makefile
Fries 986912c2aa make initial memory smaller and let it grow
i also enabled lto building which should make performance better.
2023-08-14 22:19:45 -07:00

7 lines
307 B
Makefile

LIBRARY=src/blurhash-decode.wasm
$(LIBRARY): blurhash/decode.c
emcc -flto -ffast-math -O3 --no-entry -Wl,--export,decodeToArray -Wl,--export,malloc -Wl,--export,free -Wl,--export,isValidBlurhash -s ALLOW_MEMORY_GROWTH -s INITIAL_MEMORY=128KB -o $@ blurhash/decode.c
.PHONY: clean
clean:
rm -f $(LIBRARY)