From f71d298217bd9efd85678fe5632228d4d2b12de2 Mon Sep 17 00:00:00 2001 From: ehmaldonado Date: Mon, 5 Sep 2016 10:03:57 -0700 Subject: [PATCH] GN: Apply optimize_max only on windows For iOS and Android, the default is to optimize for size. For Linux and Mac, there is no difference between default_optimization and optimize_max. NOTRY=True BUG=webrtc:6311 Review-Url: https://codereview.webrtc.org/2305403002 Cr-Commit-Position: refs/heads/master@{#14075} --- webrtc/build/webrtc.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni index e97d06633b..e4dacf333c 100644 --- a/webrtc/build/webrtc.gni +++ b/webrtc/build/webrtc.gni @@ -180,7 +180,7 @@ rtc_common_inherited_config = webrtc_root + ":common_inherited_config" rtc_remove_configs = [] rtc_add_configs = [ rtc_common_config ] -if (!is_debug) { +if (!is_debug && is_win) { rtc_remove_configs += [ "//build/config/compiler:default_optimization" ] rtc_add_configs += [ "//build/config/compiler:optimize_max" ] }