From 999a0e3c18d1a1cf56528bee9e074ecf4804dbfa Mon Sep 17 00:00:00 2001 From: cannoli-fruit Date: Tue, 14 Jul 2026 12:53:46 -0400 Subject: [PATCH] update build examples script to use generic cc variable --- buildExamples.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildExamples.sh b/buildExamples.sh index a72498a..3d51592 100755 --- a/buildExamples.sh +++ b/buildExamples.sh @@ -1,4 +1,6 @@ #!/bin/sh +set -e +: "${CC:=cc}" for f in examples/*.c; do - cc -O2 -std=c99 "$f" -o "${f%.c}" + "$CC" -std=c99 "$f" -o "${f%.c}" done