aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/go_daisy
blob: db4a95acb4ddfee4c12b79e61cccf2a50c50061d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# Invoke the Go cross compiler for daisy.
# Uses ../go_target to add PIE flags.
#
# This is just an example for an arm board.

GOOS="linux" GOARCH="arm" CGO_ENABLED="1" \
	CC="armv7a-cros-linux-gnueabi-gcc" \
	CXX="armv7a-cros-linux-gnueabi-g++" \
	exec go_target "$@"