termux-packages/packages/nodejs/tools-v8_gypfiles-v8.gyp.patch
2021-10-28 15:06:35 +05:30

25 lines
1.2 KiB
Diff

--- ./tools/v8_gypfiles/v8.gyp.orig 2021-10-20 22:03:24.000000000 +0530
+++ ./tools/v8_gypfiles/v8.gyp 2021-10-27 17:35:32.672294375 +0530
@@ -1116,6 +1116,7 @@
'<(V8_ROOT)/src/base/platform/platform-posix.h',
'<(V8_ROOT)/src/base/platform/platform-posix-time.cc',
'<(V8_ROOT)/src/base/platform/platform-posix-time.h',
+ '<(V8_ROOT)/src/base/platform/platform-linux.h',
],
'link_settings': {
'target_conditions': [
@@ -1623,7 +1624,12 @@
}],
['clang or OS!="win"', {
'conditions': [
- ['_toolset == "host" and host_arch == "x64" or _toolset == "target" and target_arch=="x64"', {
+ ['_toolset == "host" and host_arch == "x64" and (target_arch == "arm" or target_arch == "ia32")', {
+ 'sources': [
+ '<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc',
+ ],
+ }],
+ ['_toolset == "host" and host_arch == "x64" and (target_arch == "x64" or target_arch == "arm64") or (_toolset == "target" and target_arch == "x64")', {
'sources': [
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc',
],