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

Side by Side Diff: BUILD.gn

Issue 1906373002: Revert of [GN] Define USE_EABI_HARDFLOAT=1 when arm_float_abi=="hard". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 } 137 }
138 138
139 config("toolchain") { 139 config("toolchain") {
140 visibility = [ ":*" ] # Only targets in this file can depend on this. 140 visibility = [ ":*" ] # Only targets in this file can depend on this.
141 141
142 defines = [] 142 defines = []
143 cflags = [] 143 cflags = []
144 144
145 # TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el. 145 # TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el.
146
146 if (v8_target_arch == "arm") { 147 if (v8_target_arch == "arm") {
147 defines += [ "V8_TARGET_ARCH_ARM" ] 148 defines += [ "V8_TARGET_ARCH_ARM" ]
148 if (current_cpu == "arm") { 149 if (current_cpu == "arm") {
149 if (arm_version == 7) { 150 if (arm_version == 7) {
150 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ] 151 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
151 } 152 }
152 if (arm_fpu == "vfpv3-d16") { 153 if (arm_fpu == "vfpv3-d16") {
153 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ] 154 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
154 } else if (arm_fpu == "vfpv3") { 155 } else if (arm_fpu == "vfpv3") {
155 defines += [ 156 defines += [
156 "CAN_USE_VFP3_INSTRUCTIONS", 157 "CAN_USE_VFP3_INSTRUCTIONS",
157 "CAN_USE_VFP32DREGS", 158 "CAN_USE_VFP32DREGS",
158 ] 159 ]
159 } else if (arm_fpu == "neon") { 160 } else if (arm_fpu == "neon") {
160 defines += [ 161 defines += [
161 "CAN_USE_VFP3_INSTRUCTIONS", 162 "CAN_USE_VFP3_INSTRUCTIONS",
162 "CAN_USE_VFP32DREGS", 163 "CAN_USE_VFP32DREGS",
163 "CAN_USE_NEON", 164 "CAN_USE_NEON",
164 ] 165 ]
165 } 166 }
166 } else { 167 } else {
167 # These defines ares used for the ARM simulator. 168 # These defines ares used for the ARM simulator.
168 defines += [ 169 defines += [
169 "CAN_USE_ARMV7_INSTRUCTIONS", 170 "CAN_USE_ARMV7_INSTRUCTIONS",
170 "CAN_USE_VFP3_INSTRUCTIONS", 171 "CAN_USE_VFP3_INSTRUCTIONS",
171 "CAN_USE_VFP32DREGS", 172 "CAN_USE_VFP32DREGS",
173 "USE_EABI_HARDFLOAT=0",
172 ] 174 ]
173
174 if (arm_float_abi == "hard") {
175 defines += [ "USE_EABI_HARDFLOAT=1" ]
176 } else if (arm_float_abi == "softfp") {
177 defines += [ "USE_EABI_HARDFLOAT=0" ]
178 }
179 } 175 }
180 176
181 # TODO(jochen): Add support for arm_test_noprobe. 177 # TODO(jochen): Add support for arm_test_noprobe.
182 } 178 }
183 if (v8_target_arch == "arm64") { 179 if (v8_target_arch == "arm64") {
184 defines += [ "V8_TARGET_ARCH_ARM64" ] 180 defines += [ "V8_TARGET_ARCH_ARM64" ]
185 } 181 }
186 if (v8_target_arch == "mipsel") { 182 if (v8_target_arch == "mipsel") {
187 defines += [ "V8_TARGET_ARCH_MIPS" ] 183 defines += [ "V8_TARGET_ARCH_MIPS" ]
188 } 184 }
189 if (v8_target_arch == "mips64el") { 185 if (v8_target_arch == "mips64el") {
190 defines += [ "V8_TARGET_ARCH_MIPS64" ] 186 defines += [ "V8_TARGET_ARCH_MIPS64" ]
191 } 187 }
192 if (v8_target_arch == "s390") { 188 if (v8_target_arch == "s390") {
193 defines += [ "V8_TARGET_ARCH_S390" ] 189 defines += [ "V8_TARGET_ARCH_S390" ]
194 } 190 }
195 if (v8_target_arch == "s390x") { 191 if (v8_target_arch == "s390x") {
196 defines += [ 192 defines += [
197 "V8_TARGET_ARCH_S390", 193 "V8_TARGET_ARCH_S390",
198 "V8_TARGET_ARCH_S390X", 194 "V8_TARGET_ARCH_S390X",
199 ] 195 ]
200 } 196 }
201 if (v8_target_arch == "x86") { 197 if (v8_target_arch == "x86") {
202 defines += [ "V8_TARGET_ARCH_IA32" ] 198 defines += [ "V8_TARGET_ARCH_IA32" ]
203 } 199 }
204 if (v8_target_arch == "x64") { 200 if (v8_target_arch == "x64") {
205 defines += [ "V8_TARGET_ARCH_X64" ] 201 defines += [ "V8_TARGET_ARCH_X64" ]
206 } 202 }
207 203
208 if (is_win) { 204 if (is_win) {
209 defines += [ "WIN32" ] 205 defines += [ "WIN32" ]
210 # TODO(jochen): Support v8_enable_prof. 206 # TODO(jochen): Support v8_enable_prof.
211 } 207 }
212 208
213 # TODO(jochen): Add support for compiling with simulators. 209 # TODO(jochen): Add support for compiling with simulators.
214 210
215 if (is_debug) { 211 if (is_debug) {
216 # TODO(jochen): Add support for different debug optimization levels. 212 # TODO(jochen): Add support for different debug optimization levels.
217 defines += [ 213 defines += [
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 2095
2100 configs -= [ "//build/config/compiler:chromium_code" ] 2096 configs -= [ "//build/config/compiler:chromium_code" ]
2101 configs += [ "//build/config/compiler:no_chromium_code" ] 2097 configs += [ "//build/config/compiler:no_chromium_code" ]
2102 configs += [ 2098 configs += [
2103 ":internal_config", 2099 ":internal_config",
2104 ":libplatform_config", 2100 ":libplatform_config",
2105 ":features", 2101 ":features",
2106 ":toolchain", 2102 ":toolchain",
2107 ] 2103 ]
2108 } 2104 }
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