mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-22 19:33:32 +02:00
fix get go env
This commit is contained in:
parent
7d0a80b501
commit
5ecd6fe78b
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -17,13 +17,13 @@ LDFLAGS = -X github.com/xtls/xray-core/core.build=$(VERSION) -s -w -buildid=
|
||||||
PARAMS = -trimpath -ldflags "$(LDFLAGS)" -v
|
PARAMS = -trimpath -ldflags "$(LDFLAGS)" -v
|
||||||
MAIN = ./main
|
MAIN = ./main
|
||||||
PREFIX ?= $(shell go env GOPATH)
|
PREFIX ?= $(shell go env GOPATH)
|
||||||
ifeq ($(GOOS),windows)
|
ifeq ($(shell go env GOOS),windows)
|
||||||
OUTPUT = $(NAME).exe
|
OUTPUT = $(NAME).exe
|
||||||
ADDITION = go build -o w$(NAME).exe -trimpath -ldflags "-H windowsgui $(LDFLAGS)" -v $(MAIN)
|
ADDITION = go build -o w$(NAME).exe -trimpath -ldflags "-H windowsgui $(LDFLAGS)" -v $(MAIN)
|
||||||
else
|
else
|
||||||
OUTPUT = $(NAME)
|
OUTPUT = $(NAME)
|
||||||
endif
|
endif
|
||||||
ifeq ($(shell echo "$(GOARCH)" | grep -Eq "(mips|mipsle)" && echo true),true) #
|
ifeq ($(shell echo "$(shell go env GOARCH)" | grep -Eq "(mips|mipsle)" && echo true),true) #
|
||||||
ADDITION = GOMIPS=softfloat go build -o $(NAME)_softfloat -trimpath -ldflags "$(LDFLAGS)" -v $(MAIN)
|
ADDITION = GOMIPS=softfloat go build -o $(NAME)_softfloat -trimpath -ldflags "$(LDFLAGS)" -v $(MAIN)
|
||||||
endif
|
endif
|
||||||
.PHONY: clean build
|
.PHONY: clean build
|
||||||
|
|
Loading…
Reference in a new issue