#!/bin/bash set -ex export name="mcp_rhai" # Change to the directory containing this script cd "$(dirname "$0")" # Compile the V program v -n -w -gc none -cc tcc -d use_openssl -enable-globals main.v # Ensure the binary is executable chmod +x main mv main ~/hero/bin/${name} echo "Compilation successful. Binary '${name}' is ready."