[gn] Add gn configs for mips to match old behavior
BUG=chromium:474921 NOTRY=true Review-Url: https://codereview.chromium.org/2322163003 Cr-Commit-Position: refs/heads/master@{#39369}
This commit is contained in:
parent
e786ef2474
commit
a482ab5c82
11
BUILD.gn
11
BUILD.gn
@ -94,6 +94,11 @@ if (v8_enable_disassembler == "") {
|
||||
v8_enable_disassembler = is_debug && !v8_optimized_debug
|
||||
}
|
||||
|
||||
# Specifies if the target build is a simulator build. Comparing target cpu
|
||||
# with v8 target cpu to not affect simulator builds for making cross-compile
|
||||
# snapshots.
|
||||
is_target_simulator = target_cpu != v8_target_cpu
|
||||
|
||||
v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc"
|
||||
v8_random_seed = "314159265"
|
||||
v8_toolset_for_shell = "host"
|
||||
@ -236,6 +241,12 @@ config("toolchain") {
|
||||
defines += [ "V8_TARGET_ARCH_ARM64" ]
|
||||
}
|
||||
|
||||
# Mips64el/mipsel simulators.
|
||||
if (is_target_simulator &&
|
||||
(v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) {
|
||||
defines += [ "_MIPS_TARGET_SIMULATOR" ]
|
||||
}
|
||||
|
||||
# TODO(jochen): Add support for mips.
|
||||
if (v8_current_cpu == "mipsel") {
|
||||
defines += [ "V8_TARGET_ARCH_MIPS" ]
|
||||
|
@ -550,7 +550,8 @@
|
||||
},
|
||||
|
||||
'simulate_mipsel': {
|
||||
'gn_args': 'target_cpu="x86" v8_target_cpu="mipsel"',
|
||||
'gn_args':
|
||||
'target_cpu="x86" v8_target_cpu="mipsel" mips_arch_variant="r2"',
|
||||
'gyp_defines': 'target_arch=ia32 v8_target_arch=mipsel',
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user