Skip to content

Commit

Permalink
Go link tool needs to find gcc on Arm platform
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Lu <[email protected]>
  • Loading branch information
Bin Lu committed Jun 28, 2018
1 parent 00adf00 commit 86f51e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/private/actions/link.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
)

Expand Down

0 comments on commit 86f51e4

Please sign in to comment.