Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index fd8e231270110773c20d38c5a7ad3f4542fc41db..1765c13fdcd74b13741085d3a1b3d22902fe58fe 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -98,9 +98,11 @@ static_library("libyuv") { |
deps += [ ":libyuv_msa" ] |
} |
- if (is_nacl) { |
- # Always enable optimization under NaCl to workaround crbug.com/538243 . |
+ # Always enable optimization for Release and NaCl builds (to workaround |
+ # crbug.com/538243). |
+ if (!is_debug || is_nacl) { |
configs -= [ "//build/config/compiler:default_optimization" ] |
+ # Enable optimize for speed (-O2) over size (-Os). |
configs += [ "//build/config/compiler:optimize_max" ] |
} |
} |