Skip to content

Commit

Permalink
MIPS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Neur0toxine committed Dec 13, 2021
1 parent 6c44b45 commit 026c4e6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ all:

build: deps fmt
@echo "> Building"
# TODO: TinyGo has problems with the arm crosscompilation. See this: https://github.com/tinygo-org/tinygo/issues/1906
#@CGO_ENABLED=0 GOOS=linux GOARCH=arm tinygo build -o $(BIN)_linux_arm . && strip $(BIN)_linux_arm && upx -9 $(BIN)_linux_arm
@CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o $(BIN)_linux_arm . && upx -9 $(BIN)_linux_arm
@echo $(BIN)_linux_arm
# TODO: TinyGo has problems with the arm crosscompilation. See this: https://github.com/tinygo-org/tinygo/issues/1906
#@CGO_ENABLED=0 GOOS=linux GOARCH=arm64 tinygo build -o $(BIN)_linux_arm64 . && strip $(BIN)_linux_arm64 && upx -9 $(BIN)_linux_arm64
@CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o $(BIN)_linux_arm64 . && upx -9 $(BIN)_linux_arm64
@echo $(BIN)_linux_arm64
@CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags="-s -w" -o $(BIN)_linux_mips . && upx -9 $(BIN)_linux_mips
@echo $(BIN)_linux_mips
@CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags="-s -w" -o $(BIN)_linux_mipsle . && upx -9 $(BIN)_linux_mipsle
@echo $(BIN)_linux_mipsle
@CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags="-s -w" -o $(BIN)_linux_mips64 .
@echo $(BIN)_linux_mips64
@CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags="-s -w" -o $(BIN)_linux_mips64le .
@echo $(BIN)_linux_mips64le
@CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o $(BIN)_linux_386 . && upx -9 $(BIN)_linux_386
@echo $(BIN)_linux_386
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o $(BIN)_linux_amd64 . && upx -9 $(BIN)_linux_amd64
Expand Down

0 comments on commit 026c4e6

Please sign in to comment.