aicra compilation optimisation to gain 20% executable size

This commit is contained in:
Adrien Marquès 2018-10-02 12:11:46 +02:00
parent 9def4e6c03
commit 37efb58b7b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ func compile(source, build string) {
// 3. Compile // 3. Compile
clifmt.Align(" + compile") clifmt.Align(" + compile")
stdout, err := exec.Command("go", stdout, err := exec.Command("go",
"build", "-buildmode=plugin", "build", "-ldflags", "-s -w", "-buildmode=plugin",
"-o", build, "-o", build,
source, source,
).Output() ).Output()