1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/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" ;; armhf) echo "$JIT" ;; amd64) echo "$JIT" ;; x86*) echo "$JIT" ;; *) echo "$NOJIT" ;; esac