diff --git a/build-all.sh b/build-all.sh index 9a8cf390..56ef78d3 100755 --- a/build-all.sh +++ b/build-all.sh @@ -50,10 +50,14 @@ go test github.com/google/wuffs/... wuffs gen echo "Checking snapshot compiles cleanly (as C)" +$CC -c -Wall -Werror -std=c99 \ + release/c/wuffs-unsupported-snapshot.c -o /dev/null $CC -c -Wall -Werror -DWUFFS_IMPLEMENTATION -std=c99 \ release/c/wuffs-unsupported-snapshot.c -o /dev/null echo "Checking snapshot compiles cleanly (as C++)" +$CXX -c -Wall -Werror -std=c++11 \ + release/c/wuffs-unsupported-snapshot.c -o /dev/null $CXX -c -Wall -Werror -DWUFFS_IMPLEMENTATION -std=c++11 \ release/c/wuffs-unsupported-snapshot.c -o /dev/null