From 7438f45e563aee59757390b66c7856ad7d81caf0 Mon Sep 17 00:00:00 2001 From: shylinux Date: Thu, 13 Jul 2023 19:03:51 +0800 Subject: [PATCH] opt some --- core/code/compile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/code/compile.go b/core/code/compile.go index 5c194995..7326cbc0 100644 --- a/core/code/compile.go +++ b/core/code/compile.go @@ -81,7 +81,7 @@ func init() { m.Options(cli.CMD_ENV, env).Cmd(AUTOGEN, VERSION) defer m.StatusTime(VERSION, strings.TrimPrefix(m.Cmdx(cli.SYSTEM, GO, VERSION), "go version")) kit.If(!strings.Contains(m.Cmdx(nfs.CAT, ice.GO_MOD), "shylinux.com/x/ice"), func() { m.Cmd(cli.SYSTEM, GO, "get", "shylinux.com/x/ice") }) - if msg := m.Cmd(cli.SYSTEM, GO, cli.BUILD, "-o", file, main, ice.SRC_VERSION_GO, ice.SRC_BINPACK_GO); !cli.IsSuccess(msg) { + if msg := m.Cmd(cli.SYSTEM, GO, cli.BUILD, "-ldflags", "-w -s", "-o", file, main, ice.SRC_VERSION_GO, ice.SRC_BINPACK_GO); !cli.IsSuccess(msg) { m.Copy(msg) return }