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