Use max optimization when compiling neteq_performance_test.

The compiler optimization for Windows is O1 by default in GN, but O2 in GYP.
This might help explain the regression observed on neteq_performance_unittest.

NOTRY=True
BUG=641966

Review-Url: https://codereview.webrtc.org/2291253003
Cr-Commit-Position: refs/heads/master@{#13999}
This commit is contained in:
ehmaldonado 2016-08-31 08:22:09 -07:00 committed by Commit bot
parent 4cedf2b78c
commit 25f32e723a
2 changed files with 11 additions and 0 deletions

View File

@ -785,6 +785,12 @@ if (rtc_include_tests) {
":rtc_unittests_config",
]
public_configs = [ ":common_inherited_config" ]
if (!is_debug) {
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
sources = [
"call/call_perf_tests.cc",
"call/rampup_tests.cc",

View File

@ -1140,6 +1140,11 @@ if (rtc_include_tests) {
configs += [ "../..:common_config" ]
public_configs = [ "../..:common_inherited_config" ]
if (!is_debug) {
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).
configs -= [ "//build/config/clang:find_bad_constructs" ]