mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Add $CC and $CXX variables to build-*.sh
This commit is contained in:
1 parent
eb108af98a
commit
b2d598aac5
3 files changed
+19
-10
No files matched your search
+4
-1
@@ -22,6 +22,9 @@ if [ ! -e release/c/wuffs-unsupported-snapshot.c ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CC=${CC:-gcc}
|
||||
CXX=${CXX:-g++}
|
||||
|
||||
mkdir -p gen/bin
|
||||
|
||||
sources=$@
|
||||
@@ -38,5 +41,5 @@ for f in $sources; do
|
||||
fi
|
||||
echo "Building gen/bin/fuzz-$f"
|
||||
|
||||
gcc -DWUFFS_CONFIG__FUZZLIB_MAIN fuzz/c/std/${f}_fuzzer.c -o gen/bin/fuzz-$f
|
||||
$CC -DWUFFS_CONFIG__FUZZLIB_MAIN fuzz/c/std/${f}_fuzzer.c -o gen/bin/fuzz-$f
|
||||
done
|
||||
Reference in new issue
Block a user