瀏覽代碼

Merge pull request #42514 from gyakovlev/ppc64-buildmode

Akihiro Suda 4 年之前
父節點
當前提交
7125e60b45
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      hack/make/.binary

+ 3 - 2
hack/make/.binary

@@ -68,9 +68,10 @@ hash_files() {
 		esac
 	fi
 
-	# -buildmode=pie is not supported on Windows and Linux on mips and riscv64.
+	# -buildmode=pie is not supported on Windows and Linux on mips, riscv64 and ppc64be.
+	# https://github.com/golang/go/blob/master/src/cmd/internal/sys/supported.go#L89-L99
 	case "$(go env GOOS)/$(go env GOARCH)" in
-		windows/* | linux/mips* | linux/riscv*) ;;
+		windows/* | linux/mips* | linux/riscv* | linux/ppc64) ;;
 
 		*)
 			BUILDFLAGS+=("-buildmode=pie")