Skip to content

Commit

Permalink
package/go-bootstrap: Build host tools with host CC
Browse files Browse the repository at this point in the history
Use the host compiler when building host tools.

The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
here.  See golang/go#11685.

Signed-off-by: Geoff Levand <geoff@infradead.org>
  • Loading branch information
glevand committed May 19, 2016
1 parent 3f3342a commit 78eb610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/go-bootstrap/go-bootstrap.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain

HOST_GO_BOOTSTRAP_ROOT = $(HOST_DIR)/usr/lib/go-$(GO_BOOTSTRAP_VERSION)

# The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
# here. See https://github.com/golang/go/issues/11685.
HOST_GO_BOOTSTRAP_MAKE_ENV = \
GOOS=linux \
GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_ROOT)" \
GOROOT="$(@D)" \
GOBIN="$(@D)/bin" \
CC=$(HOSTCC_NOCCACHE) \
CGO_ENABLED=0

define HOST_GO_BOOTSTRAP_BUILD_CMDS
Expand Down

0 comments on commit 78eb610

Please sign in to comment.