This commit is contained in:
huangshangcheng 2026-08-11 23:58:06 +08:00 committed by GitHub
commit 6f037492aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,13 @@ else
EXT =
endif
# Detect if the architecture is RISC-V (native build)
UNAME_M ?= $(shell uname -m)
ifneq (,$(filter riscv%,$(UNAME_M)))
MOREFLAGS += -mno-strict-align
export MOREFLAGS
endif
## default: Build lib-release and zstd-release
.PHONY: default
default: lib-release zstd-release