Skip to content

Commit 4e0d68e

Browse files
committed
Bump zstd to v1.5.5
1 parent 596f8c4 commit 4e0d68e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ npm test
4343

4444
## Building from source
4545

46-
Compiled from https://github.com/facebook/zstd/tree/dev/contrib/single_file_libs, with the
46+
Compiled from https://github.com/facebook/zstd/tree/dev/build/single_file_libs, with the
4747
following steps:
4848

4949
```shell
5050
./combine.sh -r ../../lib -o zstddeclib.c zstddeclib-in.c
51-
emcc zstddeclib.c -Oz -s EXPORTED_FUNCTIONS="['_ZSTD_decompress', '_ZSTD_findDecompressedSize', '_ZSTD_isError', '_malloc', '_free']" -s ALLOW_MEMORY_GROWTH=1 -s MALLOC=emmalloc -o zstddec.wasm
52-
base64 zstddec.wasm > zstddec.txt
51+
emcc zstddeclib.c -Oz -s EXPORTED_FUNCTIONS="['_ZSTD_decompress', '_ZSTD_findDecompressedSize', '_ZSTD_isError', '_malloc', '_free']" -Wl,--no-entry -s STANDALONE_WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s MALLOC=emmalloc -o zstddec.wasm
52+
base64 -w 0 zstddec.wasm > zstddec.txt
5353
```
5454

5555
The base64 string written to `zstddec.txt` is embedded as the `wasm` variable at the bottom

0 commit comments

Comments
 (0)