| 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/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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 configs += add_configs | 72 configs += add_configs |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 template("v8_executable") { | 76 template("v8_executable") { |
| 77 executable(target_name) { | 77 executable(target_name) { |
| 78 forward_variables_from(invoker, "*", [ "configs" ]) | 78 forward_variables_from(invoker, "*", [ "configs" ]) |
| 79 configs += invoker.configs | 79 configs += invoker.configs |
| 80 configs -= remove_configs | 80 configs -= remove_configs |
| 81 configs += add_configs | 81 configs += add_configs |
| 82 if (is_linux) { |
| 83 # For enabling ASLR. |
| 84 ldflags = [ "-pie" ] |
| 85 } |
| 82 } | 86 } |
| 83 } | 87 } |
| 84 | 88 |
| 85 template("v8_component") { | 89 template("v8_component") { |
| 86 component(target_name) { | 90 component(target_name) { |
| 87 forward_variables_from(invoker, "*", [ "configs" ]) | 91 forward_variables_from(invoker, "*", [ "configs" ]) |
| 88 configs += invoker.configs | 92 configs += invoker.configs |
| 89 configs -= remove_configs | 93 configs -= remove_configs |
| 90 configs += add_configs | 94 configs += add_configs |
| 91 } | 95 } |
| 92 } | 96 } |
| OLD | NEW |