Skip to content
Myr

Add riscv64 build target (#2626)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Build successfully on Arch Linux RISC-V.

authored by Xeonacid · committed by GitHub · parent 2736a2f · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:Makefile+6 added
32 unmodified lines
33BINARYARM6 := fzf-$(GOOS)_arm634BINARYARM7 := fzf-$(GOOS)_arm735BINARYARM8 := fzf-$(GOOS)_arm836BINARYPPC64LE := fzf-$(GOOS)_ppc64le37BINARYRISCV64 := fzf-$(GOOS)_riscv643839# https://en.wikipedia.org/wiki/Uname40UNAME_M := $(shell uname -m)41ifeq ($(UNAME_M),x86_64)
17 unmodified lines
59else ifeq ($(UNAME_M),aarch64)60 BINARY := $(BINARYARM8)61else ifeq ($(UNAME_M),ppc64le)62 BINARY := $(BINARYPPC64LE)63else ifeq ($(UNAME_M),riscv64)64 BINARY := $(BINARYRISCV64)65else66$(error Build on $(UNAME_M) is not supported, yet.)67endif68
74 unmodified lines
143144target/$(BINARYPPC64LE): $(SOURCES)145 GOARCH=ppc64le $(GO) build $(BUILD_FLAGS) -o $@146147target/$(BINARYRISCV64): $(SOURCES)148 GOARCH=riscv64 $(GO) build $(BUILD_FLAGS) -o $@149150bin/fzf: target/$(BINARY) | bin151 cp -f target/$(BINARY) bin/fzf152153docker:
12 unmodified lines