Skip to content

Commit e1471ad

Browse files
committed
tools: fix redundant conditions in v8.gyp for riscv64 and loong64
The builtins conditions for riscv64 and loong64 both have the form 'v8_target_arch=="X" or v8_target_arch=="X"' which is redundant. This was copied from the mips64/mips64el pattern (where the 'or' is correct since those are two different architectures) when riscv64 and loong64 support were first added. Simplify both to match the pattern used by ppc64, s390x, and other single-variant architectures. Signed-off-by: Jamie Magee <jamie.magee@gmail.com>
1 parent 12249cc commit e1471ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/v8_gypfiles/v8.gyp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,12 @@
387387
'<(V8_ROOT)/src/builtins/arm64/builtins-arm64.cc',
388388
],
389389
}],
390-
['v8_target_arch=="riscv64" or v8_target_arch=="riscv64"', {
390+
['v8_target_arch=="riscv64"', {
391391
'sources': [
392392
'<(V8_ROOT)/src/builtins/riscv/builtins-riscv.cc',
393393
],
394394
}],
395-
['v8_target_arch=="loong64" or v8_target_arch=="loong64"', {
395+
['v8_target_arch=="loong64"', {
396396
'sources': [
397397
'<(V8_ROOT)/src/builtins/loong64/builtins-loong64.cc',
398398
],

0 commit comments

Comments
 (0)