瀏覽代碼

fix file name for openbsd

Darien Raymond 9 年之前
父節點
當前提交
9ae4611eac
共有 1 個文件被更改,包括 8 次插入0 次删除
  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
 }