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 {
sep := ' '
if goVersion > 1.4 {
sep = '='
sep := '='
if goVersion > 0 && goVersion < 1.5 {
sep = ' '
}
b := new(bytes.Buffer)