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

Unified Diff: third_party/leveldatabase/BUILD.gn

Issue 2727693004: DEPS: Update leveldatabase from 1.18 to 1.20. (Closed)
Patch Set: Addressed feedback. Created 3 years, 10 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
Index: third_party/leveldatabase/BUILD.gn
diff --git a/third_party/leveldatabase/BUILD.gn b/third_party/leveldatabase/BUILD.gn
index c8776c887c38929d645fd2f02a0c0879738f72c6..d943efac02792bb281e89064bf86ff8c925d337b 100644
--- a/third_party/leveldatabase/BUILD.gn
+++ b/third_party/leveldatabase/BUILD.gn
@@ -14,6 +14,21 @@ config("leveldatabase_config") {
]
}
+source_set("leveldatabase_opts.sse42") {
+ sources = [
+ "src/port/port_posix_sse.cc",
+ ]
+
+ configs += [ ":leveldatabase_config" ]
+
+ if (target_cpu == "x86" || target_cpu == "x64") {
+ defines += [ "LEVELDB_PLATFORM_POSIX_SSE" ]
+ if (!is_win || is_clang) {
+ cflags = [ "-msse4.2" ]
+ }
+ }
+}
+
static_library("leveldatabase") {
sources = [
"env_chromium.cc",
@@ -108,6 +123,7 @@ static_library("leveldatabase") {
public_configs = [ ":leveldatabase_config" ]
deps = [
+ ":leveldatabase_opts.sse42",
"//base",
"//base/third_party/dynamic_annotations",
"//third_party/re2",

Powered by Google App Engine
This is Rietveld 408576698