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

Unified Diff: webrtc/build/webrtc.gni

Issue 2307283002: GN Templates: Use the optimize_max compiler config. (Closed)
Patch Set: Rebase. Created 4 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 | « webrtc/BUILD.gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/build/webrtc.gni
diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni
index 60546ad34fb05f91007c66ff74f8833825effad0..c2f48a990c9a4c24e7dfa3a1e611d8d25819f995 100644
--- a/webrtc/build/webrtc.gni
+++ b/webrtc/build/webrtc.gni
@@ -173,6 +173,11 @@ rtc_common_config = webrtc_root + ":common_config"
rtc_remove_configs = []
rtc_add_configs = [ rtc_common_config ]
+if (!is_debug) {
+ rtc_remove_configs += [ "//build/config/compiler:default_optimization" ]
+ rtc_add_configs += [ "//build/config/compiler:optimize_max" ]
+}
+
set_defaults("rtc_test") {
configs = rtc_add_configs
suppressed_configs = []
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/modules/audio_coding/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698