Skip to content

Commit 4293182

Browse files
joyeecheungnodejs-github-bot
authored andcommitted
build: add gyp conditions to build cpu-$arch.cc
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7683553
1 parent 713bede commit 4293182

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tools/v8_gypfiles/v8.gyp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,29 @@
16011601
}],
16021602
# end of conditions from 'BUILD.gn'
16031603

1604+
# https://chromium-review.googlesource.com/c/v8/v8/+/7683553
1605+
['v8_target_arch=="ia32" or v8_target_arch=="x64"', {
1606+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-x86.cc'],
1607+
}],
1608+
['v8_target_arch=="arm" or v8_target_arch=="arm64"', {
1609+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-arm.cc'],
1610+
}],
1611+
['v8_target_arch=="riscv64"', {
1612+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-riscv.cc'],
1613+
}],
1614+
['v8_target_arch=="loong64"', {
1615+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-loong64.cc'],
1616+
}],
1617+
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1618+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-mips64.cc'],
1619+
}],
1620+
['v8_target_arch=="ppc64"', {
1621+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-ppc.cc'],
1622+
}],
1623+
['v8_target_arch=="s390x"', {
1624+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-s390.cc'],
1625+
}],
1626+
16041627
# Node.js validated
16051628
['OS=="solaris"', {
16061629
'link_settings': {

0 commit comments

Comments
 (0)