From f4c5d953ec9e979ab0e34054aefb82c4e948a624 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 26 Jan 2019 09:21:18 +1100 Subject: [PATCH] Have build-all.sh check as a .h file, not just .c --- build-all.sh | 4 ++++ 1 file changed, 4 insertions(+) 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