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

Side by Side Diff: BUILD.gn

Issue 2322163003: [gn] Add gn configs for mips to match old behavior (Closed)
Patch Set: Created 4 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 | infra/mb/mb_config.pyl » ('j') | infra/mb/mb_config.pyl » ('J')
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/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/config/mips.gni") 8 import("//build/config/mips.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 defines += [ "USE_EABI_HARDFLOAT=1" ] 229 defines += [ "USE_EABI_HARDFLOAT=1" ]
230 } else if (arm_float_abi == "softfp") { 230 } else if (arm_float_abi == "softfp") {
231 defines += [ "USE_EABI_HARDFLOAT=0" ] 231 defines += [ "USE_EABI_HARDFLOAT=0" ]
232 } 232 }
233 } 233 }
234 } 234 }
235 if (v8_current_cpu == "arm64") { 235 if (v8_current_cpu == "arm64") {
236 defines += [ "V8_TARGET_ARCH_ARM64" ] 236 defines += [ "V8_TARGET_ARCH_ARM64" ]
237 } 237 }
238 238
239 # Mips64el/mipsel simulators. Comparing target cpu with v8 target cpu to
240 # not affect simulator builds for making cross-compile snapshots.
241 if (target_cpu != v8_target_cpu &&
Michael Achenbach 2016/09/09 12:32:24 CC also Dirk. Want to make sure that this expresse
Dirk Pranke 2016/09/09 20:00:45 I'm not sure I understand the intent of this block
Michael Achenbach 2016/09/12 08:11:29 Close. We want to set the define when the _target_
Dirk Pranke 2016/09/12 21:19:44 Got it, right. Maybe create a separate top-level
Michael Achenbach 2016/09/13 07:12:56 Done
242 (v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) {
Michael Achenbach 2016/09/09 09:54:27 We set this for target simulator build in gyp here
vogelheim 2016/09/09 10:56:37 Might matter. (This affects code generation, and
243 defines += [ "_MIPS_TARGET_SIMULATOR" ]
244 }
245
239 # TODO(jochen): Add support for mips. 246 # TODO(jochen): Add support for mips.
240 if (v8_current_cpu == "mipsel") { 247 if (v8_current_cpu == "mipsel") {
241 defines += [ "V8_TARGET_ARCH_MIPS" ] 248 defines += [ "V8_TARGET_ARCH_MIPS" ]
242 if (v8_can_use_fpu_instructions) { 249 if (v8_can_use_fpu_instructions) {
243 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] 250 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
244 } 251 }
245 if (v8_use_mips_abi_hardfloat) { 252 if (v8_use_mips_abi_hardfloat) {
246 defines += [ 253 defines += [
247 "__mips_hard_float=1", 254 "__mips_hard_float=1",
248 "CAN_USE_FPU_INSTRUCTIONS", 255 "CAN_USE_FPU_INSTRUCTIONS",
(...skipping 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 2616
2610 deps = [ 2617 deps = [
2611 ":fuzzer_support", 2618 ":fuzzer_support",
2612 ] 2619 ]
2613 2620
2614 configs = [ ":internal_config" ] 2621 configs = [ ":internal_config" ]
2615 } 2622 }
2616 2623
2617 v8_fuzzer("wasm_code_fuzzer") { 2624 v8_fuzzer("wasm_code_fuzzer") {
2618 } 2625 }
OLDNEW
« no previous file with comments | « no previous file | infra/mb/mb_config.pyl » ('j') | infra/mb/mb_config.pyl » ('J')

Powered by Google App Engine
This is Rietveld 408576698