From b321ce85344a2740e0505599b579a487443bad8f Mon Sep 17 00:00:00 2001 From: moss Date: Wed, 17 Sep 2025 23:03:46 -0500 Subject: [PATCH] add mac build script --- build_mac.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 build_mac.sh diff --git a/build_mac.sh b/build_mac.sh new file mode 100755 index 0000000..972b78a --- /dev/null +++ b/build_mac.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +# this isnt meant to be guarenteed to work on whatever system +# the c compiler invokation just got really big +# works for my system, is a reference for you in the worst case +# +# this is another "example" build script that i use when working on the mac + +cd track_wrapper && zig build --release=fast && cd .. + +clang -Wall -Wextra -pedantic -std=c99 -L/usr/local/lib -I/usr/local/include -I. raylib_frontend.c track_wrapper/zig-out/lib/libtrack_wrapper.a -lraylib \ +-I/System/Library/Frameworks -framework IOKit -framework Cocoa -framework OpenGL \ +-frounding-math -fno-fast-math -ffp-contract=off