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

Unified Diff: third_party/sqlite/BUILD.gn

Issue 1035903002: Let sqlite use fdatasync() on Linux-based systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | third_party/sqlite/sqlite.gyp » ('j') | third_party/sqlite/sqlite.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/BUILD.gn
diff --git a/third_party/sqlite/BUILD.gn b/third_party/sqlite/BUILD.gn
index 80e1b377e8d00d1078f2d1b34bfd39df69a7822b..526d16b195a5c903c88f575c43b33d81d3603c04 100644
--- a/third_party/sqlite/BUILD.gn
+++ b/third_party/sqlite/BUILD.gn
@@ -42,6 +42,12 @@ source_set("sqlite") {
"HAVE_USLEEP=1",
]
}
+ if (is_linux || is_android) {
+ defines += [
+ # Linux provides fdatasync(), a faster equivalent of fsync().
+ "fdatasync=fdatasync",
+ ]
+ }
include_dirs = [ "amalgamation" ]
« no previous file with comments | « no previous file | third_party/sqlite/sqlite.gyp » ('j') | third_party/sqlite/sqlite.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698