Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: gni/v8.gni

Issue 2135313002: [gn] Experiment: Reset -O3 to -O2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 the V8 project authors. All rights reserved. 1 # Copyright 2016 the V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/v8_target_cpu.gni") 5 import("//build/config/v8_target_cpu.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Indicate if valgrind was fetched as a custom deps to make it available on 9 # Indicate if valgrind was fetched as a custom deps to make it available on
10 # swarming. 10 # swarming.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 if (is_debug && !v8_optimized_debug) { 51 if (is_debug && !v8_optimized_debug) {
52 remove_configs += [ "//build/config/compiler:default_optimization" ] 52 remove_configs += [ "//build/config/compiler:default_optimization" ]
53 add_configs += [ "//build/config/compiler:no_optimize" ] 53 add_configs += [ "//build/config/compiler:no_optimize" ]
54 } else { 54 } else {
55 remove_configs += [ "//build/config/compiler:default_optimization" ] 55 remove_configs += [ "//build/config/compiler:default_optimization" ]
56 56
57 # TODO(crbug.com/621335) Rework this so that we don't have the confusion 57 # TODO(crbug.com/621335) Rework this so that we don't have the confusion
58 # between "optimize_speed" and "optimize_max". 58 # between "optimize_speed" and "optimize_max".
59 if (is_posix && !is_android && !is_nacl && !using_sanitizer) { 59 if (is_posix && !is_android && !is_nacl && !using_sanitizer) {
60 add_configs += [ "//build/config/compiler:optimize_speed" ] 60 add_configs += [ "//build/config/compiler:optimize_max" ]
61 } else { 61 } else {
62 add_configs += [ "//build/config/compiler:optimize_max" ] 62 add_configs += [ "//build/config/compiler:optimize_max" ]
63 } 63 }
64 } 64 }
65 65
66 # All templates should be kept in sync. 66 # All templates should be kept in sync.
67 template("v8_source_set") { 67 template("v8_source_set") {
68 source_set(target_name) { 68 source_set(target_name) {
69 forward_variables_from(invoker, "*", [ "configs" ]) 69 forward_variables_from(invoker, "*", [ "configs" ])
70 configs += invoker.configs 70 configs += invoker.configs
(...skipping 12 matching lines...) Expand all
83 } 83 }
84 84
85 template("v8_component") { 85 template("v8_component") {
86 component(target_name) { 86 component(target_name) {
87 forward_variables_from(invoker, "*", [ "configs" ]) 87 forward_variables_from(invoker, "*", [ "configs" ])
88 configs += invoker.configs 88 configs += invoker.configs
89 configs -= remove_configs 89 configs -= remove_configs
90 configs += add_configs 90 configs += add_configs
91 } 91 }
92 } 92 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698