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}
This commit is contained in:
ehmaldonado 2016-09-05 10:03:57 -07:00 committed by Commit bot
parent 1e714ae7a6
commit f71d298217

View File

@ -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" ]
}