forked from TrueCloudLab/restic
build.go: Add go1.7 to list of linkers requiring -Xfoo=bar
syntax
This commit is contained in:
parent
c9ab75a44c
commit
38d4522ea5
1 changed files with 1 additions and 1 deletions
2
build.go
2
build.go
|
@ -263,7 +263,7 @@ func (cs Constants) LDFlags() string {
|
|||
l := make([]string, 0, len(cs))
|
||||
|
||||
v := runtime.Version()
|
||||
if strings.HasPrefix(v, "go1.5") || strings.HasPrefix(v, "go1.6") {
|
||||
if strings.HasPrefix(v, "go1.5") || strings.HasPrefix(v, "go1.6") || strings.HasPrefix(v, "go1.7") {
|
||||
for k, v := range cs {
|
||||
l = append(l, fmt.Sprintf(`-X "%s=%s"`, k, v))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue