mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Have build-example.sh build with -O3
This commit is contained in:
1 parent
4c1826ac8e
commit
845ffbeb86
1 file changed
+3
-3
+3
-3
@@ -21,13 +21,13 @@ for f in example/*; do
|
||||
echo "Building $f"
|
||||
if [ "$f" = "example/crc32" ]; then
|
||||
# example/crc32 is unusual in that it's C++, not C.
|
||||
g++ -Wall -Werror $f/*.cc -o $f/a.out
|
||||
g++ -O3 $f/*.cc -o $f/a.out
|
||||
elif [ "$f" = "example/library" ]; then
|
||||
# example/library is unusual in that it uses separately compiled libraries
|
||||
# (built by "wuffs genlib" above) 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
|
||||
gcc -O3 -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
|
||||
gcc -O3 $f/*.c -o $f/a.out
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user