update build examples script to use generic cc variable
This commit is contained in:
parent
913a49e2fb
commit
999a0e3c18
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
: "${CC:=cc}"
|
||||||
for f in examples/*.c; do
|
for f in examples/*.c; do
|
||||||
cc -O2 -std=c99 "$f" -o "${f%.c}"
|
"$CC" -std=c99 "$f" -o "${f%.c}"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue