mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Make MozJPEG builds reproducible
I was wondering why MozJPEG produces different Wasm binaries even when nothing is changed. After looking at the binary diffs, I think I have figured & fixed the reason.
This commit is contained in:
@@ -46,7 +46,10 @@ $(CODEC_DIR)/Makefile: $(CODEC_DIR)/configure
|
|||||||
--without-turbojpeg \
|
--without-turbojpeg \
|
||||||
--without-simd \
|
--without-simd \
|
||||||
--without-arith-enc \
|
--without-arith-enc \
|
||||||
--without-arith-dec
|
--without-arith-dec \
|
||||||
|
--with-build-date=squoosh
|
||||||
|
# ^ If not provided with a dummy value, MozJPEG includes a build date in the
|
||||||
|
# binary as part of the version string, making binaries different each time.
|
||||||
|
|
||||||
$(CODEC_DIR)/configure: $(CODEC_DIR)/configure.ac
|
$(CODEC_DIR)/configure: $(CODEC_DIR)/configure.ac
|
||||||
cd $(CODEC_DIR) && autoreconf -iv
|
cd $(CODEC_DIR) && autoreconf -iv
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user