mirror of
https://github.com/termux/termux-packages.git
synced 2025-09-24 02:32:30 +00:00
35 lines
1.9 KiB
Diff
35 lines
1.9 KiB
Diff
--- ./tools/v8_gypfiles/v8.gyp.orig 2025-02-13 17:23:55.000000000 +0530
|
|
+++ ./tools/v8_gypfiles/v8.gyp 2025-03-01 22:23:08.640009780 +0530
|
|
@@ -1351,7 +1351,7 @@
|
|
}],
|
|
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
|
|
# to implement atomic memory access
|
|
- ['v8_current_cpu in ["mips64", "mips64el", "ppc", "arm", "riscv64", "loong64"]', {
|
|
+ ['((OS=="linux" or OS=="android") and clang==1) or (v8_current_cpu in ["mips64", "mips64el", "ppc", "arm", "riscv64", "loong64"])', {
|
|
'link_settings': {
|
|
'libraries': ['-latomic', ],
|
|
},
|
|
@@ -1495,6 +1495,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': [
|
|
@@ -2017,12 +2018,12 @@
|
|
],
|
|
}, { # '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 == "x64" or target_arch == "arm64") or (_toolset == "target" and target_arch == "x64")', {
|
|
'sources': [
|
|
'<(V8_ROOT)/src/heap/base/asm/x64/push_registers_asm.cc',
|
|
],
|
|
}],
|
|
- ['_toolset == "host" and host_arch == "ia32" or _toolset == "target" and target_arch=="ia32"', {
|
|
+ ['_toolset == "host" and host_arch == "x64" and (target_arch == "arm" or target_arch == "ia32") or (_toolset == "target" and target_arch == "ia32")', {
|
|
'sources': [
|
|
'<(V8_ROOT)/src/heap/base/asm/ia32/push_registers_asm.cc',
|
|
],
|