From 86f51e462dc5230044ed32520320f22a66d6f1e5 Mon Sep 17 00:00:00 2001 From: Bin Lu Date: Wed, 27 Jun 2018 10:35:17 +0800 Subject: [PATCH] Go link tool needs to find gcc on Arm platform Signed-off-by: Bin Lu --- go/private/actions/link.bzl | 2 ++ 1 file changed, 2 insertions(+) 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)), )