script/build: '--all' should not effect the DWARF tables
This commit is contained in:
parent
8baf6b0acc
commit
5f183083ff
@ -21,7 +21,7 @@ import (
|
||||
var (
|
||||
BuildOS = flag.String("os", runtime.GOOS, "OS to target: darwin, freebsd, linux, windows")
|
||||
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")
|
||||
ShowHelp = flag.Bool("help", false, "Shows help")
|
||||
matrixKeys = map[string]string{
|
||||
@ -55,7 +55,7 @@ func mainBuild() {
|
||||
"github.com/git-lfs/git-lfs/config.GitCommit="+string(cmd),
|
||||
))
|
||||
}
|
||||
if !*BuildDwarf || *BuildAll {
|
||||
if !*BuildDwarf {
|
||||
LdFlags = append(LdFlags, "-s", "-w")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user