Skip to content

Commit 617c191

Browse files
glevandRisca
authored andcommitted
package/go-bootstrap: Build host tools with host CC
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 <[email protected]> Reviewed-by: Romain Naour <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]>
1 parent 8fc9e1f commit 617c191

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package/go-bootstrap/go-bootstrap.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain
1919

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

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

2932
define HOST_GO_BOOTSTRAP_BUILD_CMDS

0 commit comments

Comments
 (0)