From 25f32e723a979295ab033381bb0a028763b32683 Mon Sep 17 00:00:00 2001 From: ehmaldonado Date: Wed, 31 Aug 2016 08:22:09 -0700 Subject: [PATCH] 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} --- webrtc/BUILD.gn | 6 ++++++ webrtc/modules/audio_coding/BUILD.gn | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index 1f7f52104a..9857423f30 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -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", diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn index 27c1060e44..1dbc929e8f 100644 --- a/webrtc/modules/audio_coding/BUILD.gn +++ b/webrtc/modules/audio_coding/BUILD.gn @@ -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" ]