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

Side by Side Diff: BUILD.gn

Issue 1316233005: Fix GN arm64 build, add msan support in GN. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comment Created 5 years, 3 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 8
9 # Because standalone V8 builds are not supported, assume this is part of a 9 # Because standalone V8 builds are not supported, assume this is part of a
10 # Chromium build. 10 # Chromium build.
11 import("//build/module_args/v8.gni") 11 import("//build/module_args/v8.gni")
12 12
13 # TODO(jochen): These will need to be user-settable to support standalone V8 13 # TODO(jochen): These will need to be user-settable to support standalone V8
14 # builds. 14 # builds.
15 v8_deprecation_warnings = false 15 v8_deprecation_warnings = false
16 v8_enable_disassembler = false 16 v8_enable_disassembler = false
17 v8_enable_gdbjit = false 17 v8_enable_gdbjit = false
18 v8_enable_handle_zapping = true 18 v8_enable_handle_zapping = true
19 v8_enable_i18n_support = true 19 v8_enable_i18n_support = true
20 v8_enable_verify_heap = false 20 v8_enable_verify_heap = false
21 v8_interpreted_regexp = false 21 v8_interpreted_regexp = false
22 v8_object_print = false 22 v8_object_print = false
23 v8_postmortem_support = false 23 v8_postmortem_support = false
24 v8_use_snapshot = true 24 v8_use_snapshot = true
25 v8_target_arch = target_cpu
26 v8_random_seed = "314159265" 25 v8_random_seed = "314159265"
27 v8_toolset_for_d8 = "host" 26 v8_toolset_for_d8 = "host"
28 27
28 if (is_msan) {
29 # Running the V8-generated code on an ARM simulator is a powerful hack that
30 # allows the tool to see the memory accesses from JITted code. Without this
31 # flag, JS code causes false positive reports from MSan.
32 v8_target_arch = "arm64"
33 } else {
34 v8_target_arch = target_cpu
35 }
36
29 # The snapshot needs to be compiled for the host, but compiled with 37 # The snapshot needs to be compiled for the host, but compiled with
30 # a toolchain that matches the bit-width of the target. 38 # a toolchain that matches the bit-width of the target.
31 # 39 #
32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an 40 # TODO(GYP): For now we only support 32-bit little-endian target builds from an
33 # x64 Linux host. Eventually we need to support all of the host/target 41 # x64 Linux host. Eventually we need to support all of the host/target
34 # configurations v8 runs on. 42 # configurations v8 runs on.
35 if (host_cpu == "x64" && host_os == "linux") { 43 if (host_cpu == "x64" && host_os == "linux") {
36 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") { 44 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") {
37 snapshot_toolchain = "//build/toolchain/linux:clang_x86" 45 snapshot_toolchain = "//build/toolchain/linux:clang_x86"
38 } else if (target_cpu == "x64") { 46 } else if (target_cpu == "x64") {
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 "src/arm64/builtins-arm64.cc", 1381 "src/arm64/builtins-arm64.cc",
1374 "src/arm64/codegen-arm64.cc", 1382 "src/arm64/codegen-arm64.cc",
1375 "src/arm64/codegen-arm64.h", 1383 "src/arm64/codegen-arm64.h",
1376 "src/arm64/code-stubs-arm64.cc", 1384 "src/arm64/code-stubs-arm64.cc",
1377 "src/arm64/code-stubs-arm64.h", 1385 "src/arm64/code-stubs-arm64.h",
1378 "src/arm64/constants-arm64.h", 1386 "src/arm64/constants-arm64.h",
1379 "src/arm64/cpu-arm64.cc", 1387 "src/arm64/cpu-arm64.cc",
1380 "src/arm64/decoder-arm64.cc", 1388 "src/arm64/decoder-arm64.cc",
1381 "src/arm64/decoder-arm64.h", 1389 "src/arm64/decoder-arm64.h",
1382 "src/arm64/decoder-arm64-inl.h", 1390 "src/arm64/decoder-arm64-inl.h",
1391 "src/arm64/delayed-masm-arm64.cc",
1392 "src/arm64/delayed-masm-arm64.h",
1393 "src/arm64/delayed-masm-arm64-inl.h",
1383 "src/arm64/deoptimizer-arm64.cc", 1394 "src/arm64/deoptimizer-arm64.cc",
1384 "src/arm64/disasm-arm64.cc", 1395 "src/arm64/disasm-arm64.cc",
1385 "src/arm64/disasm-arm64.h", 1396 "src/arm64/disasm-arm64.h",
1386 "src/arm64/frames-arm64.cc", 1397 "src/arm64/frames-arm64.cc",
1387 "src/arm64/frames-arm64.h", 1398 "src/arm64/frames-arm64.h",
1388 "src/arm64/instructions-arm64.cc", 1399 "src/arm64/instructions-arm64.cc",
1389 "src/arm64/instructions-arm64.h", 1400 "src/arm64/instructions-arm64.h",
1390 "src/arm64/instrument-arm64.cc", 1401 "src/arm64/instrument-arm64.cc",
1391 "src/arm64/instrument-arm64.h", 1402 "src/arm64/instrument-arm64.h",
1392 "src/arm64/interface-descriptors-arm64.cc", 1403 "src/arm64/interface-descriptors-arm64.cc",
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 if (!is_component_build) { 1834 if (!is_component_build) {
1824 sources += [ 1835 sources += [
1825 "$target_gen_dir/d8-js.cc", 1836 "$target_gen_dir/d8-js.cc",
1826 ] 1837 ]
1827 } 1838 }
1828 if (v8_enable_i18n_support) { 1839 if (v8_enable_i18n_support) {
1829 deps += [ "//third_party/icu" ] 1840 deps += [ "//third_party/icu" ]
1830 } 1841 }
1831 } 1842 }
1832 } 1843 }
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