Skip to content
Myr

[make] Add loongarch64 support (#2857)

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

authored by znley · committed by GitHub · parent 2707af4 · 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
33 unmodified lines
34BINARYARM7 := fzf-$(GOOS)_arm735BINARYARM8 := fzf-$(GOOS)_arm836BINARYPPC64LE := fzf-$(GOOS)_ppc64le37BINARYRISCV64 := fzf-$(GOOS)_riscv6438BINARYLOONG64 := fzf-$(GOOS)_loong643940# https://en.wikipedia.org/wiki/Uname41UNAME_M := $(shell uname -m)42ifeq ($(UNAME_M),x86_64)
19 unmodified lines
62else ifeq ($(UNAME_M),ppc64le)63 BINARY := $(BINARYPPC64LE)64else ifeq ($(UNAME_M),riscv64)65 BINARY := $(BINARYRISCV64)66else ifeq ($(UNAME_M),loongarch64)67 BINARY := $(BINARYLOONG64)68else69$(error Build on $(UNAME_M) is not supported, yet.)70endif71
78 unmodified lines
150151target/$(BINARYRISCV64): $(SOURCES)152 GOARCH=riscv64 $(GO) build $(BUILD_FLAGS) -o $@153154target/$(BINARYLOONG64): $(SOURCES)155 GOARCH=loong64 $(GO) build $(BUILD_FLAGS) -o $@156157bin/fzf: target/$(BINARY) | bin158 cp -f target/$(BINARY) bin/fzf159160docker:
12 unmodified lines