Update build.sh

This commit is contained in:
Rodolfo Barcelli Jo 2026-01-22 08:22:03 +08:00
parent 8d20a774da
commit af9cc43bfa

View file

@ -5,5 +5,10 @@ if [[ ! -d ./build ]]; then
fi fi
pushd "./build" pushd "./build"
echo "Building test/main"
gcc -g -std=c89 "../test/main.c" -o main.c gcc -g -std=c89 "../test/main.c" -o main.c
if [[ $? == 0 ]] && [[ $1 == "--run" ]]; then
./main.c
fi
popd popd