Have build-all.sh check as a .h file, not just .c

This commit is contained in:
Nigel Tao committed 2019-01-26 09:21:18 +11:00
1 parent fda3c4c986
commit f4c5d953ec
1 file changed
+4
+4
View File
@@ -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