aboutsummaryrefslogtreecommitdiff
path: root/scripts/select-compile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-06-24 20:33:56 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-06-24 20:33:56 +0300
commitfe3d9c7dfbe4190ecf0919abe474e4da4c019566 (patch)
tree91dd12b6a9980e5945e7dbde761afadd9d118d09 /scripts/select-compile
parent5a4da8bac457f0e70e690a572eba9cf754e69a37 (diff)
downloadejit-fe3d9c7dfbe4190ecf0919abe474e4da4c019566.tar.gz
ejit-fe3d9c7dfbe4190ecf0919abe474e4da4c019566.zip
add initial compiler framework
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