Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: third_party/sqlite/src/tool/warnings.sh

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/tool/symbols.sh ('k') | third_party/sqlite/src/vsixtest/App.xaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/tool/warnings.sh
diff --git a/third_party/sqlite/src/tool/warnings.sh b/third_party/sqlite/src/tool/warnings.sh
index d69cbaf5dbc76d553a8b95f460e3ac7eccbf506a..ae40cfb1aee371aea82b06b9251bb059768a0602 100644
--- a/third_party/sqlite/src/tool/warnings.sh
+++ b/third_party/sqlite/src/tool/warnings.sh
@@ -3,13 +3,26 @@
# Run this script in a directory with a working makefile to check for
# compiler warnings in SQLite.
#
+
+# Use these for testing on Linux and Mac OSX:
+WARNING_OPTS="-Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long"
+WARNING_ANDROID_OPTS="-Wshadow -Wall -Wextra"
+
+# Use these for testing on OpenBSD:
+# WARNING_OPTS=-Wall
+# WARNING_ANDROID_OPTS=-Wall
+
rm -f sqlite3.c
make sqlite3.c
-echo '********** No optimizations. Includes FTS4 and RTREE *********'
-gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
+echo '********** No optimizations. Includes FTS4/5, RTREE, JSON1 ***'
+echo '********** ' Options: $WARNING_OPTS
+gcc -c $WARNING_OPTS -std=c89 \
-ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
+ -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 \
sqlite3.c
+if test x`uname` = 'xLinux'; then
echo '********** Android configuration ******************************'
+echo '********** ' Options: $WARNING_ANDROID_OPTS
gcc -c \
-DHAVE_USLEEP=1 \
-DSQLITE_HAVE_ISNAN \
@@ -29,13 +42,17 @@ gcc -c \
-DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 \
-DSQLITE_ENABLE_ICU \
-DUSE_PREAD64 \
- -Wshadow -Wall -Wextra \
+ $WARNING_ANDROID_OPTS \
-Os sqlite3.c shell.c
+fi
echo '********** No optimizations. ENABLE_STAT4. THREADSAFE=0 *******'
-gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
+echo '********** ' Options: $WARNING_OPTS
+gcc -c $WARNING_OPTS -std=c89 \
-ansi -DSQLITE_ENABLE_STAT4 -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 \
+echo '********** Optimized -O3. Includes FTS4/5, RTREE, JSON1 ******'
+echo '********** ' Options: $WARNING_OPTS
+gcc -O3 -c $WARNING_OPTS -std=c89 \
-ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
+ -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_JSON1 \
sqlite3.c
« no previous file with comments | « third_party/sqlite/src/tool/symbols.sh ('k') | third_party/sqlite/src/vsixtest/App.xaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698