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

Unified Diff: base/BUILD.gn

Issue 555373004: Compile specific parts of the Android build with -O2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 3 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 | base/allocator/BUILD.gn » ('j') | cc/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/BUILD.gn
diff --git a/base/BUILD.gn b/base/BUILD.gn
index 6edbfbecacf75bcd5a52841bcf8f3d172d8b8856..ef4e7fda81f802a6534344c31eeb736447dcaa32 100644
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -908,6 +908,10 @@ component("base") {
}
configs += [ "//build/config/compiler:wexit_time_destructors" ]
+ if (is_android && !is_debug) {
+ configs -= [ "//build/config/compiler:optimize" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
}
# This is the subset of files from base that should not be used with a dynamic
@@ -920,6 +924,11 @@ source_set("base_static") {
"win/pe_image.cc",
"win/pe_image.h",
]
+
+ if (is_android && !is_debug) {
+ configs -= [ "//build/config/compiler:optimize" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
}
component("i18n") {
@@ -968,6 +977,11 @@ component("i18n") {
"//base/third_party/dynamic_annotations",
"//third_party/icu",
]
+
+ if (is_android && !is_debug) {
+ configs -= [ "//build/config/compiler:optimize" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
}
source_set("prefs") {
@@ -1013,6 +1027,11 @@ source_set("prefs") {
defines = [ "BASE_PREFS_IMPLEMENTATION" ]
deps = [ ":base" ]
+
+ if (is_android && !is_debug) {
+ configs -= [ "//build/config/compiler:optimize" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
}
source_set("prefs_test_support") {
« no previous file with comments | « no previous file | base/allocator/BUILD.gn » ('j') | cc/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698