Index: base/third_party/nspr/BUILD.gn |
diff --git a/base/third_party/nspr/BUILD.gn b/base/third_party/nspr/BUILD.gn |
index b1cf6487825e4367e23c242b2b3d87078546cf5f..ddbcbc181fff12bb0ce1fe33018850f50586a4db 100644 |
--- a/base/third_party/nspr/BUILD.gn |
+++ b/base/third_party/nspr/BUILD.gn |
@@ -12,4 +12,9 @@ source_set("nspr") { |
# In GYP this project is part of base, so it uses the base implementation |
# define. TODO(brettw) rename this define. |
defines = [ "BASE_IMPLEMENTATION" ] |
+ |
+ if (is_android && !is_debug) { |
+ configs -= [ "//build/config/compiler:optimize" ] |
+ configs += [ "//build/config/compiler:optimize_max" ] |
+ } |
} |