summaryrefslogtreecommitdiff
path: root/vendor/github.com/zeebo/xxh3/Makefile
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-01-26 12:14:10 +0000
committerLibravatar GitHub <noreply@github.com>2024-01-26 12:14:10 +0000
commit07207e71e932b0d4a38253e069be6090872c4e3f (patch)
treebee71828fe2e6d3086bcd36e175301388fc95972 /vendor/github.com/zeebo/xxh3/Makefile
parent[docs] Fix log-timestamp-format (#2572) (diff)
downloadgotosocial-07207e71e932b0d4a38253e069be6090872c4e3f.tar.xz
[performance] cache library performance enhancements (updates go-structr => v0.2.0) (#2575)
* update go-structr => v0.2.0 * update readme * whoops, fix the link
Diffstat (limited to 'vendor/github.com/zeebo/xxh3/Makefile')
-rw-r--r--vendor/github.com/zeebo/xxh3/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/github.com/zeebo/xxh3/Makefile b/vendor/github.com/zeebo/xxh3/Makefile
new file mode 100644
index 000000000..8bd78c482
--- /dev/null
+++ b/vendor/github.com/zeebo/xxh3/Makefile
@@ -0,0 +1,27 @@
+.PHONY: all vet
+all: genasm _compat
+
+genasm: avo/avx.go avo/sse.go
+ cd ./avo; go generate gen.go
+
+clean:
+ rm accum_vector_avx_amd64.s
+ rm accum_vector_sse_amd64.s
+ rm _compat
+
+upstream/xxhash.o: upstream/xxhash.h
+ ( cd upstream && make )
+
+_compat: _compat.c upstream/xxhash.o
+ gcc -o _compat _compat.c ./upstream/xxhash.o
+
+vet:
+ GOOS=linux GOARCH=386 GO386=softfloat go vet ./...
+ GOOS=windows GOARCH=386 GO386=softfloat go vet ./...
+ GOOS=linux GOARCH=amd64 go vet ./...
+ GOOS=windows GOARCH=amd64 go vet ./...
+ GOOS=darwin GOARCH=amd64 go vet ./...
+ GOOS=linux GOARCH=arm go vet ./...
+ GOOS=linux GOARCH=arm64 go vet ./...
+ GOOS=windows GOARCH=arm64 go vet ./...
+ GOOS=darwin GOARCH=arm64 go vet ./... \ No newline at end of file