From 37efb58b7bdb4dc520fa96b58eb1bb625712f922 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 2 Oct 2018 12:11:46 +0200 Subject: [PATCH] aicra compilation optimisation to gain 20% executable size --- cmd/aicra/compile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/aicra/compile.go b/cmd/aicra/compile.go index addb757..61814e9 100644 --- a/cmd/aicra/compile.go +++ b/cmd/aicra/compile.go @@ -23,7 +23,7 @@ func compile(source, build string) { // 3. Compile clifmt.Align(" + compile") stdout, err := exec.Command("go", - "build", "-buildmode=plugin", + "build", "-ldflags", "-s -w", "-buildmode=plugin", "-o", build, source, ).Output()