mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 05:36:44 +00:00
20 lines
319 B
Bash
20 lines
319 B
Bash
|
#!/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
|