aboutsummaryrefslogtreecommitdiff
path: root/scripts/select-compile
blob: 38fc7b00c799d5a4999bca335c869bdd1fbcbf78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

ARCH="$1"
if [ -z "$ARCH" ]; then
	ARCH=$(uname -m)
fi

JIT="src/compile/compile.c"
NOJIT="src/compile/nocompile.c"

case "$ARCH" in
	powerpc64le) echo "$JIT" ;;
	mips64el) echo "$JIT" ;;
	aarch64) echo "$JIT" ;;
	mipsel) echo "$JIT" ;;
	amd64) echo "$JIT" ;;
	x86*) echo "$JIT" ;;
	*) echo "$NOJIT" ;;
esac