Kaynağa Gözat

fix file name for openbsd

Darien Raymond 9 yıl önce
ebeveyn
işleme
9ae4611eac
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      tools/build/env.go

+ 8 - 0
tools/build/env.go

@@ -100,6 +100,14 @@ func getSuffix(os GoOS, arch GoArch) string {
 		case Arm:
 			suffix = "-freebsd-arm"
 		}
+	case OpenBSD:
+		switch arch {
+		case X86:
+			suffix = "-openbsd-32"
+		case Amd64:
+			suffix = "-openbsd-64"
+		}
 	}
+
 	return suffix
 }