Add $CC and $CXX variables to build-*.sh

This commit is contained in:
Nigel Tao committed 2018-12-26 12:38:15 +11:00
1 parent eb108af98a
commit b2d598aac5
3 files changed
+19 -10

No files matched your search

+4 -1
View File
@@ -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