df3aa16e2b
FossilOrigin-Name: 9b191bb4c7c1e1b12b188c0b3eee1f8f587887c8
19 lines
818 B
Bash
19 lines
818 B
Bash
#/bin/sh
|
|
#
|
|
# Run this script in a directory with a working makefile to check for
|
|
# compiler warnings in SQLite.
|
|
#
|
|
make sqlite3.c
|
|
echo '********** No optimizations. Includes FTS4 and RTREE *********'
|
|
gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
|
-ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
|
|
sqlite3.c
|
|
echo '********** No optimizations. ENABLE_STAT2. THREADSAFE=0 *******'
|
|
gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
|
-ansi -DSQLITE_ENABLE_STAT2 -DSQLITE_THREADSAFE=0 \
|
|
sqlite3.c
|
|
echo '********** Optimized -O3. Includes FTS4 and RTREE ************'
|
|
gcc -O3 -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
|
-ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
|
|
sqlite3.c
|