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

Side by Side Diff: BUILD.gn

Issue 2006163004: Make v8_target_arch a GN declare_arg(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium 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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/mips.gni") 7 import("//build/config/mips.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 # Similar to vfp but on MIPS. 63 # Similar to vfp but on MIPS.
64 v8_can_use_fpu_instructions = true 64 v8_can_use_fpu_instructions = true
65 65
66 # Similar to the ARM hard float ABI but on MIPS. 66 # Similar to the ARM hard float ABI but on MIPS.
67 v8_use_mips_abi_hardfloat = true 67 v8_use_mips_abi_hardfloat = true
68 } 68 }
69 69
70 v8_random_seed = "314159265" 70 v8_random_seed = "314159265"
71 v8_toolset_for_shell = "host" 71 v8_toolset_for_shell = "host"
72 72
73 if (is_msan) { 73 declare_args() {
74 # Running the V8-generated code on an ARM simulator is a powerful hack that 74 # Running the V8-generated code on an ARM simulator is a powerful hack that
75 # allows the tool to see the memory accesses from JITted code. Without this 75 # allows sanitizers and other tools to see the memory accesses from
76 # flag, JS code causes false positive reports from MSan. 76 # JITted code.
77 v8_target_arch = "arm64" 77 v8_target_arch = ""
Michael Achenbach 2016/05/24 06:39:32 I've recently added this to v8's overrides: https:
78 } else { 78 }
79 v8_target_arch = target_cpu 79
80 if (v8_target_arch == "") {
81 if (is_msan) {
82 # Without this flag, JS code causes false positive reports from MSan.
83 v8_target_arch = "arm64"
84 } else {
85 v8_target_arch = target_cpu
86 }
80 } 87 }
81 88
82 if (v8_use_snapshot && v8_use_external_startup_data) { 89 if (v8_use_snapshot && v8_use_external_startup_data) {
83 snapshot_target = ":v8_external_snapshot" 90 snapshot_target = ":v8_external_snapshot"
84 } else if (v8_use_snapshot) { 91 } else if (v8_use_snapshot) {
85 snapshot_target = ":v8_snapshot" 92 snapshot_target = ":v8_snapshot"
86 } else { 93 } else {
87 assert(!v8_use_external_startup_data) 94 assert(!v8_use_external_startup_data)
88 snapshot_target = ":v8_nosnapshot" 95 snapshot_target = ":v8_nosnapshot"
89 } 96 }
(...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 sources = [ 2197 sources = [
2191 "test/fuzzer/wasm-asmjs.cc", 2198 "test/fuzzer/wasm-asmjs.cc",
2192 ] 2199 ]
2193 2200
2194 deps = [ 2201 deps = [
2195 ":fuzzer_support", 2202 ":fuzzer_support",
2196 ] 2203 ]
2197 2204
2198 configs = [ ":internal_config" ] 2205 configs = [ ":internal_config" ]
2199 } 2206 }
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