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

Unified Diff: BUILD.gn

Issue 1403813002: Enable optimization when compiling for NaCl with GN (Closed) Base URL: http://libyuv.googlecode.com/svn/trunk
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 4ad4c5752dd47d65ea77276f66a6c1ec6837d2a6..f0f8404b890a1d1f5891b168eadd9f1229104e35 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -102,6 +102,12 @@ source_set("libyuv") {
if (use_neon) {
deps += [ ":libyuv_neon" ]
}
+
+ if (is_nacl) {
+ # Always enable optimization under NaCl to workaround crbug.com/538243 .
+ configs -= [ "//build/config/compiler:default_optimization" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
+ }
}
if (use_neon) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698