17 lines
340 B
Bash
Executable File
17 lines
340 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
export name="mcp_vcode"
|
|
|
|
# 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."
|