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

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') | 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/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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 # Derived defaults. 89 # Derived defaults.
90 if (v8_object_print == "") { 90 if (v8_object_print == "") {
91 v8_object_print = is_debug && !v8_optimized_debug 91 v8_object_print = is_debug && !v8_optimized_debug
92 } 92 }
93 if (v8_enable_disassembler == "") { 93 if (v8_enable_disassembler == "") {
94 v8_enable_disassembler = is_debug && !v8_optimized_debug 94 v8_enable_disassembler = is_debug && !v8_optimized_debug
95 } 95 }
96 96
97 # Specifies if the target build is a simulator build. Comparing target cpu
98 # with v8 target cpu to not affect simulator builds for making cross-compile
99 # snapshots.
100 is_target_simulator = target_cpu != v8_target_cpu
101
97 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc" 102 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc"
98 v8_random_seed = "314159265" 103 v8_random_seed = "314159265"
99 v8_toolset_for_shell = "host" 104 v8_toolset_for_shell = "host"
100 105
101 ############################################################################### 106 ###############################################################################
102 # Configurations 107 # Configurations
103 # 108 #
104 config("internal_config") { 109 config("internal_config") {
105 visibility = [ ":*" ] # Only targets in this file can depend on this. 110 visibility = [ ":*" ] # Only targets in this file can depend on this.
106 111
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 defines += [ "USE_EABI_HARDFLOAT=1" ] 234 defines += [ "USE_EABI_HARDFLOAT=1" ]
230 } else if (arm_float_abi == "softfp") { 235 } else if (arm_float_abi == "softfp") {
231 defines += [ "USE_EABI_HARDFLOAT=0" ] 236 defines += [ "USE_EABI_HARDFLOAT=0" ]
232 } 237 }
233 } 238 }
234 } 239 }
235 if (v8_current_cpu == "arm64") { 240 if (v8_current_cpu == "arm64") {
236 defines += [ "V8_TARGET_ARCH_ARM64" ] 241 defines += [ "V8_TARGET_ARCH_ARM64" ]
237 } 242 }
238 243
244 # Mips64el/mipsel simulators.
245 if (is_target_simulator &&
246 (v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) {
247 defines += [ "_MIPS_TARGET_SIMULATOR" ]
248 }
249
239 # TODO(jochen): Add support for mips. 250 # TODO(jochen): Add support for mips.
240 if (v8_current_cpu == "mipsel") { 251 if (v8_current_cpu == "mipsel") {
241 defines += [ "V8_TARGET_ARCH_MIPS" ] 252 defines += [ "V8_TARGET_ARCH_MIPS" ]
242 if (v8_can_use_fpu_instructions) { 253 if (v8_can_use_fpu_instructions) {
243 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] 254 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
244 } 255 }
245 if (v8_use_mips_abi_hardfloat) { 256 if (v8_use_mips_abi_hardfloat) {
246 defines += [ 257 defines += [
247 "__mips_hard_float=1", 258 "__mips_hard_float=1",
248 "CAN_USE_FPU_INSTRUCTIONS", 259 "CAN_USE_FPU_INSTRUCTIONS",
(...skipping 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 2620
2610 deps = [ 2621 deps = [
2611 ":fuzzer_support", 2622 ":fuzzer_support",
2612 ] 2623 ]
2613 2624
2614 configs = [ ":internal_config" ] 2625 configs = [ ":internal_config" ]
2615 } 2626 }
2616 2627
2617 v8_fuzzer("wasm_code_fuzzer") { 2628 v8_fuzzer("wasm_code_fuzzer") {
2618 } 2629 }
OLDNEW
« no previous file with comments | « no previous file | infra/mb/mb_config.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698