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") |
| 6 |
5 declare_args() { | 7 declare_args() { |
6 # V8 generates code for this architecture. If v8_target_arch differs from | 8 # V8 generates code for this architecture. If v8_target_arch differs from |
7 # target_cpu, a simulator will be run. | 9 # target_cpu, a simulator will be run. |
8 v8_target_arch = "" | 10 v8_target_arch = "" |
9 } | 11 } |
| 12 |
| 13 if (v8_target_arch == "") { |
| 14 if (is_msan) { |
| 15 # Running the V8-generated code on an ARM simulator is a powerful hack that |
| 16 # allows the tool to see the memory accesses from JITted code. Without this |
| 17 # flag, JS code causes false positive reports from MSan. |
| 18 v8_target_arch = "arm64" |
| 19 } else { |
| 20 v8_target_arch = target_cpu |
| 21 } |
| 22 } |
OLD | NEW |