summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Buynytskyy <alexbuy@google.com>2020-07-16 15:25:00 -0700
committerAlex Buynytskyy <alexbuy@google.com>2020-07-17 03:31:27 +0000
commit04524550f01c17bc6b489adbc26791ed9171e3dd (patch)
treec7ec93f2dda68d23eda45eb5d23b35c53825f026
parent88147c430cc041a27d07e593ffea12b7aa586f7a (diff)
Fix for sqlite3_open_v2 returning errors.
Happened after default compilation flags changed in ag/11474704. The fix is to revert the flags for just this library. Fixes: 160728363 Test: manually install the apk in the bug and verify it's not crashing/throwing the exception. Change-Id: I9e02a810bee088b35d25921086810f695956d6d3 Merged-In: I9e02a810bee088b35d25921086810f695956d6d3
-rw-r--r--dist/Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/Android.bp b/dist/Android.bp
index 414c84d..d4eb4b4 100644
--- a/dist/Android.bp
+++ b/dist/Android.bp
@@ -41,6 +41,9 @@ cc_defaults {
"-Wno-unused-parameter",
"-Werror",
+ // Default value causes sqlite3_open_v2 to return error if DB is missing.
+ "-ftrivial-auto-var-init=pattern",
+
// Turn off the new pass manager due to miscompile.
// http://b/131854833
"-fno-experimental-new-pass-manager",