From fe3d9c7dfbe4190ecf0919abe474e4da4c019566 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 24 Jun 2024 20:33:56 +0300 Subject: add initial compiler framework --- scripts/select-compile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/select-compile (limited to 'scripts/select-compile') 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 -- cgit v1.2.3