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

# Invoke the Go cross compiler for elm32.
# 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-clang" \
	CXX="armv7a-cros-linux-gnueabi-clang++" \
	exec go_target "$@"