diff --git a/example/build.sh b/example/build.sh index 28c509c..4405e9d 100755 --- a/example/build.sh +++ b/example/build.sh @@ -1,5 +1,9 @@ #!/bin/bash +if [ -e a.out ]; then + rm a.out +fi + if [ $(uname -s) = 'Darwin' ]; then clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g; else