Use patched go1.7.1 for cross-builds targeting darwin

This commit is contained in:
Jeff Grafton
2016-09-29 16:33:30 -07:00
parent 5f4c8c241e
commit f769b02c8f
3 changed files with 8 additions and 2 deletions

View File

@@ -236,6 +236,7 @@ kube::golang::set_platform_envs() {
if [[ ${platform} == "linux/arm" ]]; then
export CGO_ENABLED=1
export CC=arm-linux-gnueabi-gcc
# See https://github.com/kubernetes/kubernetes/issues/29904
export GOROOT=${K8S_PATCHED_GOROOT}
elif [[ ${platform} == "linux/arm64" ]]; then
export CGO_ENABLED=1
@@ -243,6 +244,9 @@ kube::golang::set_platform_envs() {
elif [[ ${platform} == "linux/ppc64le" ]]; then
export CGO_ENABLED=1
export CC=powerpc64le-linux-gnu-gcc
elif [[ ${platform} == "darwin/"* ]]; then
# See https://github.com/kubernetes/kubernetes/issues/32999
export GOROOT=${K8S_PATCHED_GOROOT}
fi
fi
}