GN Templates: Use the optimize_max compiler config.

Add "//build/config/compiler:optimize_max" to rtc_add_configs and
"//build/config/compiler:default_optimization" to rtc_remove_configs.

This is the default optimization in GYP, and might help explain a 82.5%
regression in webrtc_perf_tests at 13946:13946

BUG=chromium:641966
NOTRY=True

Review-Url: https://codereview.webrtc.org/2307283002
Cr-Commit-Position: refs/heads/master@{#14067}
This commit is contained in:
ehmaldonado
2016-09-05 02:48:54 -07:00
committed by Commit bot
parent ccd7489661
commit 59af8b7714
3 changed files with 5 additions and 10 deletions

View File

@ -1104,11 +1104,6 @@ if (rtc_include_tests) {
public_configs = [ "../..:common_inherited_config" ]
if (!is_debug) {
suppressed_configs += [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
if (is_clang) {
# Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163).
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]