mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Merge pull request #98508 from tonistiigi/arm64-cross
enable cross-compile CC config for non-amd64
This commit is contained in:
commit
2d9e9290e7
@ -416,6 +416,13 @@ kube::golang::set_platform_envs() {
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# if CC is defined for platform then always enable it
|
||||
ccenv=$(echo "$platform" | awk -F/ '{print "KUBE_" toupper($1) "_" toupper($2) "_CC"}')
|
||||
if [ -n "${!ccenv-}" ]; then
|
||||
export CGO_ENABLED=1
|
||||
export CC="${!ccenv}"
|
||||
fi
|
||||
}
|
||||
|
||||
kube::golang::unset_platform_envs() {
|
||||
|
Loading…
Reference in New Issue
Block a user