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:
parent
ccd7489661
commit
59af8b7714
@ -770,11 +770,6 @@ if (rtc_include_tests) {
|
||||
configs += [ ":rtc_unittests_config" ]
|
||||
public_configs = [ ":common_inherited_config" ]
|
||||
|
||||
if (!is_debug) {
|
||||
suppressed_configs += [ "//build/config/compiler:default_optimization" ]
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
|
||||
sources = [
|
||||
"call/call_perf_tests.cc",
|
||||
"call/rampup_tests.cc",
|
||||
|
||||
@ -173,6 +173,11 @@ rtc_common_config = webrtc_root + ":common_config"
|
||||
rtc_remove_configs = []
|
||||
rtc_add_configs = [ rtc_common_config ]
|
||||
|
||||
if (!is_debug) {
|
||||
rtc_remove_configs += [ "//build/config/compiler:default_optimization" ]
|
||||
rtc_add_configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
|
||||
set_defaults("rtc_test") {
|
||||
configs = rtc_add_configs
|
||||
suppressed_configs = []
|
||||
|
||||
@ -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" ]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user