| 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") {
|
|
|