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

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

GOOS="linux" GOARCH="amd64" CGO_ENABLED="1" \
	CC="x86_64-cros-linux-gnu-gcc" \
	CXX="x86_64-cros-linux-gnu-g++" \
	exec go_target "$@"