diff --git a/go.mod b/go.mod index f31d85ed3..26b0ba816 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/valyala/fastjson v1.6.4 github.com/valyala/fastrand v1.1.0 github.com/valyala/fasttemplate v1.2.2 - github.com/valyala/gozstd v1.19.0 + github.com/valyala/gozstd v1.19.1 github.com/valyala/histogram v1.2.0 github.com/valyala/quicktemplate v1.7.0 golang.org/x/net v0.9.0 diff --git a/go.sum b/go.sum index 1571e3efe..78a08b23b 100644 --- a/go.sum +++ b/go.sum @@ -425,8 +425,8 @@ github.com/valyala/fastrand v1.1.0 h1:f+5HkLW4rsgzdNoleUOB69hyT9IlD2ZQh9GyDMfb5G github.com/valyala/fastrand v1.1.0/go.mod h1:HWqCzkrkg6QXT8V2EXWvXCoow7vLwOFN002oeRzjapQ= github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/valyala/gozstd v1.19.0 h1:BS0M7sH3dcuyw2SQBrTLprAdGuNxfiH0c4IAM8kX07c= -github.com/valyala/gozstd v1.19.0/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ= +github.com/valyala/gozstd v1.19.1 h1:6Ftg2xogscS/9FEdn+qJvM8AxifLNUK65Ez6tp3doYI= +github.com/valyala/gozstd v1.19.1/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ= github.com/valyala/histogram v1.2.0 h1:wyYGAZZt3CpwUiIb9AU/Zbllg1llXyrtApRS815OLoQ= github.com/valyala/histogram v1.2.0/go.mod h1:Hb4kBwb4UxsaNbbbh+RRz8ZR6pdodR57tzWUS3BUzXY= github.com/valyala/quicktemplate v1.7.0 h1:LUPTJmlVcb46OOUY3IeD9DojFpAVbsG+5WFTcjMJzCM= diff --git a/vendor/github.com/valyala/gozstd/README.md b/vendor/github.com/valyala/gozstd/README.md index 7b8d31142..2bd32e3ca 100644 --- a/vendor/github.com/valyala/gozstd/README.md +++ b/vendor/github.com/valyala/gozstd/README.md @@ -76,6 +76,18 @@ env CC=arm-linux-gnueabi-gcc GOOS=linux GOARCH=arm CGO_ENABLED=1 go build ./main * [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics) +### How to build for Windows x64 + +* download & install TDM64-GCC: https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm64-2/tdm64-gcc-10.3.0-2.exe +* download & install GnuWin32-make: https://gnuwin32.sourceforge.net/downlinks/make.php +* download & install CMake: https://github.com/Kitware/CMake/releases/download/v3.26.3/cmake-3.26.3-windows-x86_64.msi +* `cd gozstd\zstd\cmake` +* `mkdir out` +* `cd out` +* `cmake .. -DZSTD_BUILD_SHARED=OFF -DZSTD_BUILD_PROGRAMS=OFF -G "MinGW Makefiles"` +* `make` +* `copy lib/libzstd.a ../../../../libzstd_windows_amd64.a` + ## FAQ diff --git a/vendor/github.com/valyala/gozstd/libzstd_darwin_amd64.a b/vendor/github.com/valyala/gozstd/libzstd_darwin_amd64.a index 7157fb394..ec16bf5c0 100644 Binary files a/vendor/github.com/valyala/gozstd/libzstd_darwin_amd64.a and b/vendor/github.com/valyala/gozstd/libzstd_darwin_amd64.a differ diff --git a/vendor/github.com/valyala/gozstd/libzstd_darwin_arm64.a b/vendor/github.com/valyala/gozstd/libzstd_darwin_arm64.a index d6116c1ea..92761606f 100644 Binary files a/vendor/github.com/valyala/gozstd/libzstd_darwin_arm64.a and b/vendor/github.com/valyala/gozstd/libzstd_darwin_arm64.a differ diff --git a/vendor/github.com/valyala/gozstd/libzstd_freebsd_amd64.a b/vendor/github.com/valyala/gozstd/libzstd_freebsd_amd64.a index 7c992f93f..957ab9b6a 100644 Binary files a/vendor/github.com/valyala/gozstd/libzstd_freebsd_amd64.a and b/vendor/github.com/valyala/gozstd/libzstd_freebsd_amd64.a differ diff --git a/vendor/github.com/valyala/gozstd/libzstd_illumos_amd64.a b/vendor/github.com/valyala/gozstd/libzstd_illumos_amd64.a new file mode 100644 index 000000000..c447905db Binary files /dev/null and b/vendor/github.com/valyala/gozstd/libzstd_illumos_amd64.a differ diff --git a/vendor/github.com/valyala/gozstd/libzstd_illumos_amd64.go b/vendor/github.com/valyala/gozstd/libzstd_illumos_amd64.go new file mode 100644 index 000000000..5e3d58420 --- /dev/null +++ b/vendor/github.com/valyala/gozstd/libzstd_illumos_amd64.go @@ -0,0 +1,6 @@ +package gozstd + +/* +#cgo LDFLAGS: ${SRCDIR}/libzstd_illumos_amd64.a +*/ +import "C" diff --git a/vendor/github.com/valyala/gozstd/libzstd_windows_amd64.a b/vendor/github.com/valyala/gozstd/libzstd_windows_amd64.a index 81a185fcd..e5b2a393f 100644 Binary files a/vendor/github.com/valyala/gozstd/libzstd_windows_amd64.a and b/vendor/github.com/valyala/gozstd/libzstd_windows_amd64.a differ diff --git a/vendor/modules.txt b/vendor/modules.txt index 294f6ada1..b81d19120 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -463,7 +463,7 @@ github.com/valyala/fastrand # github.com/valyala/fasttemplate v1.2.2 ## explicit; go 1.12 github.com/valyala/fasttemplate -# github.com/valyala/gozstd v1.19.0 +# github.com/valyala/gozstd v1.19.1 ## explicit; go 1.12 github.com/valyala/gozstd # github.com/valyala/histogram v1.2.0