Skip to content

Commit ff132ee

Browse files
committed
build: add gyp conditions to build cpu-$arch.cc
1 parent e8408b0 commit ff132ee

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
@@ -1612,6 +1612,29 @@
16121612
}],
16131613
# end of conditions from 'BUILD.gn'
16141614

1615+
# https://chromium-review.googlesource.com/c/v8/v8/+/7683553
1616+
['v8_target_arch=="ia32" or v8_target_arch=="x64"', {
1617+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-x86.cc'],
1618+
}],
1619+
['v8_target_arch=="arm" or v8_target_arch=="arm64"', {
1620+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-arm.cc'],
1621+
}],
1622+
['v8_target_arch=="riscv64"', {
1623+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-riscv.cc'],
1624+
}],
1625+
['v8_target_arch=="loong64"', {
1626+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-loong64.cc'],
1627+
}],
1628+
['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1629+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-mips64.cc'],
1630+
}],
1631+
['v8_target_arch=="ppc64"', {
1632+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-ppc.cc'],
1633+
}],
1634+
['v8_target_arch=="s390x"', {
1635+
'sources': ['<(V8_ROOT)/src/base/cpu/cpu-s390.cc'],
1636+
}],
1637+
16151638
# Node.js validated
16161639
['OS=="solaris"', {
16171640
'link_settings': {

0 commit comments

Comments
 (0)