summaryrefslogtreecommitdiffstats
path: root/llgo/llgo-go.sh
blob: a29be01a55e3539f580945084cfbcc3ce9202abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

scriptpath=$(which "$0")
scriptpath=$(readlink -f "$scriptpath")
bindir=$(dirname "$scriptpath")
prefix=$(dirname "$bindir")

cmd="$1"

case "$cmd" in
build | get | install | run | test)
  shift
  PATH="$prefix/lib/llgo/go-path:$PATH" exec go "$cmd" -compiler gccgo "$@"
  ;;

*)
  exec go "$@"
  ;;
esac
OpenPOWER on IntegriCloud