Files
herolib/libwip/mcp_rhai/cmd/compile.sh
2025-09-14 17:57:06 +02:00

17 lines
339 B
Bash
Executable File

#!/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."