build: change usage of `grep` for better compatibility

This commit is contained in:
Grvzard 2024-05-28 20:19:30 +08:00 committed by 风扇滑翔翼
parent 0a3c449cdf
commit 73c5650b17
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ ADDITION = go build -o w$(NAME).exe -trimpath -ldflags "-H windowsgui $(LDFLAGS)
else
OUTPUT = $(NAME)
endif
ifeq ($(shell echo "$(GOARCH)" | grep -Pq "(mips|mipsle)" && echo true),true) #
ifeq ($(shell echo "$(GOARCH)" | grep -Eq "(mips|mipsle)" && echo true),true) #
ADDITION = GOMIPS=softfloat go build -o $(NAME)_softfloat -trimpath -ldflags "$(LDFLAGS)" -v $(MAIN)
endif
.PHONY: clean