mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add example/crc32
This commit is contained in:
1 parent
b09748c485
commit
f3538d9117
2 files changed
+77
-1
No files matched your search
+6
-1
@@ -45,7 +45,12 @@ wuffs bench -skipgen -mimic -reps=1 -iterscale=1
|
||||
|
||||
for f in example/*; do
|
||||
echo Building $f
|
||||
if [ "$f" = "example/library" ]; then
|
||||
if [ "$f" = "example/crc32" ]; then
|
||||
# example/crc32 is unusual in that it's C++, not C.
|
||||
g++ $f/*.cc -o $f/a.out
|
||||
elif [ "$f" = "example/library" ]; then
|
||||
# example/library is unusual in that it uses separately compiled libraries
|
||||
# instead of directly #include'ing Wuffs' .c files.
|
||||
gcc -Wall -Werror -static -I.. $f/*.c gen/lib/c/gcc-static/libwuffs.a -o $f/a.out
|
||||
elif [ -e $f/*.c ]; then
|
||||
gcc -Wall -Werror $f/*.c -o $f/a.out
|
||||
|
||||
Reference in new issue
Block a user