OLD | NEW |
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/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
6 import("//build/config/v8_target_cpu.gni") | 6 import("//build/config/v8_target_cpu.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 ] | 56 ] |
57 | 57 |
58 if (is_debug && !v8_optimized_debug) { | 58 if (is_debug && !v8_optimized_debug) { |
59 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] | 59 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] |
60 v8_add_configs += [ "//build/config/compiler:no_optimize" ] | 60 v8_add_configs += [ "//build/config/compiler:no_optimize" ] |
61 } else { | 61 } else { |
62 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] | 62 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] |
63 | 63 |
64 # TODO(crbug.com/621335) Rework this so that we don't have the confusion | 64 # TODO(crbug.com/621335) Rework this so that we don't have the confusion |
65 # between "optimize_speed" and "optimize_max". | 65 # between "optimize_speed" and "optimize_max". |
66 if (is_posix && !is_android && !is_nacl && !using_sanitizer) { | 66 if (is_posix && !is_android && !using_sanitizer) { |
67 v8_add_configs += [ "//build/config/compiler:optimize_speed" ] | 67 v8_add_configs += [ "//build/config/compiler:optimize_speed" ] |
68 } else { | 68 } else { |
69 v8_add_configs += [ "//build/config/compiler:optimize_max" ] | 69 v8_add_configs += [ "//build/config/compiler:optimize_max" ] |
70 } | 70 } |
71 } | 71 } |
72 | 72 |
73 if (is_posix && v8_enable_backtrace) { | 73 if (is_posix && v8_enable_backtrace) { |
74 v8_remove_configs += [ "//build/config/gcc:symbol_visibility_hidden" ] | 74 v8_remove_configs += [ "//build/config/gcc:symbol_visibility_hidden" ] |
75 v8_add_configs += [ "//build/config/gcc:symbol_visibility_default" ] | 75 v8_add_configs += [ "//build/config/gcc:symbol_visibility_default" ] |
76 } | 76 } |
(...skipping 22 matching lines...) Expand all Loading... |
99 } | 99 } |
100 | 100 |
101 template("v8_component") { | 101 template("v8_component") { |
102 component(target_name) { | 102 component(target_name) { |
103 forward_variables_from(invoker, "*", [ "configs" ]) | 103 forward_variables_from(invoker, "*", [ "configs" ]) |
104 configs += invoker.configs | 104 configs += invoker.configs |
105 configs -= v8_remove_configs | 105 configs -= v8_remove_configs |
106 configs += v8_add_configs | 106 configs += v8_add_configs |
107 } | 107 } |
108 } | 108 } |
OLD | NEW |