diff --git a/go/private/actions/link.bzl b/go/private/actions/link.bzl index 8bb2944a90..3101483681 100644 --- a/go/private/actions/link.bzl +++ b/go/private/actions/link.bzl @@ -159,6 +159,8 @@ def _bootstrap_link(go, archive, executable, gc_linkopts): inputs = inputs, outputs = [executable], mnemonic = "GoLink", + # workaround: go link tool needs some features of gcc to complete the job on Arm platform. + # So, PATH for 'gcc' is required here on Arm platform. command = "export GOROOT=$(pwd)/{} && export GOROOT_FINAL=GOROOT && {} {}".format(go.root, go.go.path, " ".join(args)), )