2016-05-24 08:54:42 +00:00
|
|
|
# Copyright 2016 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2016-05-24 10:39:57 +00:00
|
|
|
import("//build/config/sanitizers/sanitizers.gni")
|
|
|
|
|
2016-05-24 08:54:42 +00:00
|
|
|
declare_args() {
|
|
|
|
# V8 generates code for this architecture. If v8_target_arch differs from
|
|
|
|
# target_cpu, a simulator will be run.
|
|
|
|
v8_target_arch = ""
|
|
|
|
}
|
2016-05-24 10:39:57 +00:00
|
|
|
|
|
|
|
if (v8_target_arch == "") {
|
|
|
|
if (is_msan) {
|
|
|
|
# Running the V8-generated code on an ARM simulator is a powerful hack that
|
|
|
|
# allows the tool to see the memory accesses from JITted code. Without this
|
|
|
|
# flag, JS code causes false positive reports from MSan.
|
|
|
|
v8_target_arch = "arm64"
|
|
|
|
} else {
|
|
|
|
v8_target_arch = target_cpu
|
|
|
|
}
|
|
|
|
}
|