#!/usr/bin/env bash # M1 paged-store gate. Pure C (NOT elb/elc). Writes only under /tmp. set -e HERE="$(cd "$(dirname "$0")" && pwd)" SRC="$HERE/../../lang/runtime/engram_store.c" BIN="/tmp/test_store.$$" echo "compiling: gcc test_store.c engram_store.c" gcc -O2 -Wall -Wextra -std=c11 "$HERE/test_store.c" "$SRC" -o "$BIN" "$BIN" rc=$? rm -f "$BIN" rm -rf /tmp/engram-store-test-* exit $rc