Default to modern -ldflags syntax for unknown Go version

This commit is contained in:
Jakob Borg 2016-03-05 22:25:28 +01:00
parent 5dd55d3811
commit b8c72ade4c

View File

@ -438,9 +438,9 @@ func clean() {
} }
func ldflags() string { func ldflags() string {
sep := ' ' sep := '='
if goVersion > 1.4 { if goVersion > 0 && goVersion < 1.5 {
sep = '=' sep = ' '
} }
b := new(bytes.Buffer) b := new(bytes.Buffer)