Add build instructions

This commit is contained in:
Surma
2021-07-20 19:14:23 +01:00
parent cd20082e5d
commit 490fe2aace
2 changed files with 14 additions and 0 deletions

14
codecs/visdif/BUILD.md Normal file
View File

@ -0,0 +1,14 @@
This codec currently needs monkey-patching of Emscripten
```
$ docker run --rm -it -v $(PWD):/src squoosh-cpp "/bin/bash"
# cat << EOF | patch /emsdk/upstream/emscripten/system/lib/dlmalloc.c
659c659
< #define MALLOC_ALIGNMENT ((size_t)(2 * sizeof(void *)))
---
> #define MALLOC_ALIGNMENT ((size_t)(16U))
EOF
# emcc --clear-cache
# /emsdk/upstream/emscripten/embuilder build libdlmalloc --force
# emmake make
```

Binary file not shown.