script/build: '--all' should not effect the DWARF tables

This commit is contained in:
Taylor Blau 2017-02-14 09:24:07 -07:00
parent 8baf6b0acc
commit 5f183083ff

@ -21,7 +21,7 @@ import (
var ( var (
BuildOS = flag.String("os", runtime.GOOS, "OS to target: darwin, freebsd, linux, windows") BuildOS = flag.String("os", runtime.GOOS, "OS to target: darwin, freebsd, linux, windows")
BuildArch = flag.String("arch", "", "Arch to target: 386, amd64") BuildArch = flag.String("arch", "", "Arch to target: 386, amd64")
BuildAll = flag.Bool("all", false, "Builds all architectures (omits DWARF tables)") BuildAll = flag.Bool("all", false, "Builds all architectures")
BuildDwarf = flag.Bool("dwarf", false, "Includes DWARF tables in build artifacts") BuildDwarf = flag.Bool("dwarf", false, "Includes DWARF tables in build artifacts")
ShowHelp = flag.Bool("help", false, "Shows help") ShowHelp = flag.Bool("help", false, "Shows help")
matrixKeys = map[string]string{ matrixKeys = map[string]string{
@ -55,7 +55,7 @@ func mainBuild() {
"github.com/git-lfs/git-lfs/config.GitCommit="+string(cmd), "github.com/git-lfs/git-lfs/config.GitCommit="+string(cmd),
)) ))
} }
if !*BuildDwarf || *BuildAll { if !*BuildDwarf {
LdFlags = append(LdFlags, "-s", "-w") LdFlags = append(LdFlags, "-s", "-w")
} }