From fff62644f0206ee44fe2b96ed90f8b2ab76816b5 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 20 May 2020 15:13:33 +0800 Subject: [PATCH] Chore: add trimpath for go build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce0626b98..f4c981954 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ NAME=clash BINDIR=bin VERSION=$(shell git describe --tags || echo "unknown version") BUILDTIME=$(shell date -u) -GOBUILD=CGO_ENABLED=0 go build -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \ +GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \ -X "github.com/Dreamacro/clash/constant.BuildTime=$(BUILDTIME)" \ -w -s'