Chromium Code Reviews

Side by Side Diff: BUILD.gn

Issue 874393007: Use target_cpu instead of cpu_arch in BUILD.gn (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« 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 # Because standalone V8 builds are not supported, assume this is part of a 5 # Because standalone V8 builds are not supported, assume this is part of a
6 # Chromium build. 6 # Chromium build.
7 import("//build/module_args/v8.gni") 7 import("//build/module_args/v8.gni")
8 8
9 # TODO(jochen): These will need to be user-settable to support standalone V8 9 # TODO(jochen): These will need to be user-settable to support standalone V8
10 # builds. 10 # builds.
11 v8_deprecation_warnings = false 11 v8_deprecation_warnings = false
12 v8_enable_disassembler = false 12 v8_enable_disassembler = false
13 v8_enable_gdbjit = false 13 v8_enable_gdbjit = false
14 v8_enable_handle_zapping = true 14 v8_enable_handle_zapping = true
15 v8_enable_i18n_support = true 15 v8_enable_i18n_support = true
16 v8_enable_verify_heap = false 16 v8_enable_verify_heap = false
17 v8_interpreted_regexp = false 17 v8_interpreted_regexp = false
18 v8_object_print = false 18 v8_object_print = false
19 v8_postmortem_support = false 19 v8_postmortem_support = false
20 v8_use_snapshot = true 20 v8_use_snapshot = true
21 v8_target_arch = cpu_arch 21 v8_target_arch = target_arch
22 v8_random_seed = "314159265" 22 v8_random_seed = "314159265"
23 v8_toolset_for_d8 = "host" 23 v8_toolset_for_d8 = "host"
24 24
25 ############################################################################### 25 ###############################################################################
26 # Configurations 26 # Configurations
27 # 27 #
28 config("internal_config") { 28 config("internal_config") {
29 visibility = [ ":*" ] # Only targets in this file can depend on this. 29 visibility = [ ":*" ] # Only targets in this file can depend on this.
30 30
31 include_dirs = [ "." ] 31 include_dirs = [ "." ]
(...skipping 61 matching lines...)
93 config("toolchain") { 93 config("toolchain") {
94 visibility = [ ":*" ] # Only targets in this file can depend on this. 94 visibility = [ ":*" ] # Only targets in this file can depend on this.
95 95
96 defines = [] 96 defines = []
97 cflags = [] 97 cflags = []
98 98
99 # TODO(jochen): Add support for arm subarchs, mips, mipsel. 99 # TODO(jochen): Add support for arm subarchs, mips, mipsel.
100 100
101 if (v8_target_arch == "arm") { 101 if (v8_target_arch == "arm") {
102 defines += [ "V8_TARGET_ARCH_ARM" ] 102 defines += [ "V8_TARGET_ARCH_ARM" ]
103 if (arm_version == 7) { 103 if (cpu_arch == "arm") {
Dirk Pranke 2015/02/23 20:25:50 This will need to be current_cpu.
104 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ] 104 if (arm_version == 7) {
105 } 105 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
106 if (arm_fpu == "vfpv3-d16") { 106 }
107 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ] 107 if (arm_fpu == "vfpv3-d16") {
108 } 108 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
109 if (arm_fpu == "vfpv3") { 109 }
110 if (arm_fpu == "vfpv3") {
111 defines += [
112 "CAN_USE_VFP3_INSTRUCTIONS",
113 "CAN_USE_VFP32DREGS",
114 ]
115 }
116 if (arm_fpu == "neon") {
117 defines += [
118 "CAN_USE_VFP3_INSTRUCTIONS",
119 "CAN_USE_VFP32DREGS",
120 "CAN_USE_NEON",
121 ]
122 }
123 } else {
110 defines += [ 124 defines += [
125 "CAN_USE_ARMV7_INSTRUCTIONS",
111 "CAN_USE_VFP3_INSTRUCTIONS", 126 "CAN_USE_VFP3_INSTRUCTIONS",
112 "CAN_USE_VFP32DREGS", 127 "CAN_USE_VFP32DREGS",
113 ] 128 "USE_EABI_HARDFLOAT=0",
114 }
115 if (arm_fpu == "neon") {
116 defines += [
117 "CAN_USE_VFP3_INSTRUCTIONS",
118 "CAN_USE_VFP32DREGS",
119 "CAN_USE_NEON",
120 ] 129 ]
121 } 130 }
122 131
123 # TODO(jochen): Add support for arm_test_noprobe. 132 # TODO(jochen): Add support for arm_test_noprobe.
124
125 # TODO(jochen): Add support for cpu_arch != v8_target_arch/
126 } 133 }
127 if (v8_target_arch == "arm64") { 134 if (v8_target_arch == "arm64") {
128 defines += [ "V8_TARGET_ARCH_ARM64" ] 135 defines += [ "V8_TARGET_ARCH_ARM64" ]
129 } 136 }
130 if (v8_target_arch == "x86") { 137 if (v8_target_arch == "x86") {
131 defines += [ "V8_TARGET_ARCH_IA32" ] 138 defines += [ "V8_TARGET_ARCH_IA32" ]
132 } 139 }
133 if (v8_target_arch == "x64") { 140 if (v8_target_arch == "x64") {
134 defines += [ "V8_TARGET_ARCH_X64" ] 141 defines += [ "V8_TARGET_ARCH_X64" ]
135 } 142 }
(...skipping 1421 matching lines...)
1557 sources += [ 1564 sources += [
1558 "src/d8-debug.cc", 1565 "src/d8-debug.cc",
1559 "$target_gen_dir/d8-js.cc", 1566 "$target_gen_dir/d8-js.cc",
1560 ] 1567 ]
1561 } 1568 }
1562 if (v8_enable_i18n_support) { 1569 if (v8_enable_i18n_support) {
1563 deps += [ "//third_party/icu" ] 1570 deps += [ "//third_party/icu" ]
1564 } 1571 }
1565 } 1572 }
1566 } 1573 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine