Skip to content
Open
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
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down