aboutsummaryrefslogtreecommitdiff
path: root/scripts/select-compile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/select-compile')
-rwxr-xr-xscripts/select-compile16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/select-compile b/scripts/select-compile
new file mode 100755
index 0000000..be8b40d
--- /dev/null
+++ b/scripts/select-compile
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+ARCH="$1"
+if [ -z "$ARCH" ]; then
+ ARCH=$(uname -m)
+fi
+
+>&2 echo $ARCH
+
+JIT="src/compile/compile.c"
+NOJIT="src/compile/nocompile.c"
+
+case "$ARCH" in
+ x86_64) echo "$JIT" ;;
+ *) echo "$NOJIT" ;;
+esac