Skip to content

adds libzstd_linux_riscv64.a build #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GOOS_GOARCH := $(GOOS)_$(GOARCH)
GOOS_GOARCH_NATIVE := $(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
LIBZSTD_NAME := libzstd_$(GOOS_GOARCH).a
ZSTD_VERSION ?= v1.5.6
ZIG_BUILDER_IMAGE=euantorano/zig:0.10.1
ZIG_BUILDER_IMAGE=denisgolius/zig:0.13.0
BUILDER_IMAGE := local/builder_musl:2.0.0-$(shell echo $(ZIG_BUILDER_IMAGE) | tr : _ | tr / _)-1

.PHONY: libzstd.a $(LIBZSTD_NAME)
Expand All @@ -30,7 +30,7 @@ else ifeq ($(GOOS_GOARCH),darwin_arm64)
else ifeq ($(GOOS_GOARCH),darwin_amd64)
TARGET=x86_64-macos GOARCH=amd64 GOOS=darwin $(MAKE) package-arch
else ifeq ($(GOOS_GOARCH),windows_amd64)
TARGET=x86_64-windows GOARCH=amd64 GOOS=windows GOARCH=amd64 $(MAKE) package-arch
TARGET=x86_64-windows GOARCH=amd64 GOOS=windows $(MAKE) package-arch
endif

package-builder:
Expand Down
Binary file added libzstd_linux_riscv64.a
Binary file not shown.
9 changes: 9 additions & 0 deletions libzstd_linux_riscv64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build !musl
// +build !musl

package gozstd

/*
#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_riscv64.a
*/
import "C"