فهرست منبع

Merge pull request #42518 from tianon/buildmode-comments

Akihiro Suda 4 سال پیش
والد
کامیت
afb16e88b3
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      hack/make/.binary

+ 3 - 1
hack/make/.binary

@@ -69,9 +69,11 @@ hash_files() {
 	fi
 	fi
 
 
 	# -buildmode=pie is not supported on Windows and Linux on mips, riscv64 and ppc64be.
 	# -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
+	# https://github.com/golang/go/blob/77aa209b386a184e7f4b44938f2a05a1b5c5a3cf/src/cmd/internal/sys/supported.go#L89-L99
 	case "$(go env GOOS)/$(go env GOARCH)" in
 	case "$(go env GOOS)/$(go env GOARCH)" in
 		windows/* | linux/mips* | linux/riscv* | linux/ppc64) ;;
 		windows/* | linux/mips* | linux/riscv* | linux/ppc64) ;;
+		# TODO remove windows in Go 1.15+: https://github.com/golang/go/commit/95f382139043059a2a0780ba577b53893408f7e4
+		# TODO remove riscv64 in Go 1.16+: https://github.com/golang/go/commit/8eb846fd37eb7bded8a1cf6932be2c59069863e5
 
 
 		*)
 		*)
 			BUILDFLAGS+=("-buildmode=pie")
 			BUILDFLAGS+=("-buildmode=pie")