From 36fae5c7d1924d18699a1c5ebeeb8c849ef0b61c Mon Sep 17 00:00:00 2001 From: Namonay Date: Tue, 9 Jan 2024 01:01:31 +0100 Subject: [PATCH] update buid.sh --- example/build.sh | 4 ++++ 1 file changed, 4 insertions(+) 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