mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
tools: update V8 gypfiles for 13.4
Build Node.js with simdutf version from V8. Refs: https://github.com/v8/v8/commit/d62905147cf63e52a8c1417d7be7e5b783d3f211 Refs: https://github.com/v8/v8/commit/616c87580c06e76d991c06213530e5ac0043c314 Refs: https://github.com/v8/v8/commit/e3204d589e7911bd2ee75784bec2f9c9e482bbcb Refs: https://github.com/v8/v8/commit/e8293d2b878ecf639f2c55219068a8b780e01030 Refs: https://github.com/v8/v8/commit/aeb22200587fd36f1bb65f3657221db4b93c6693 Refs: https://github.com/v8/v8/commit/5621164e3c9218fa4e4b8a4a7cd0b6784c46fa18 Co-authored-by: Abdirahim Musse <abdirahim.musse@ibm.com> PR-URL: https://github.com/nodejs/node/pull/58070 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
1 parent
cff3fa5f03
commit
e9a75322eb
5 files changed
+81
-3
No files matched your search
@@ -1332,7 +1332,7 @@
|
||||
],
|
||||
'conditions': [
|
||||
[ 'node_shared_simdutf=="false"', {
|
||||
'dependencies': [ 'deps/simdutf/simdutf.gyp:simdutf#host' ],
|
||||
'dependencies': [ 'tools/v8_gypfiles/v8.gyp:simdutf#host' ],
|
||||
}],
|
||||
[ 'node_shared_libuv=="false"', {
|
||||
'dependencies': [ 'deps/uv/uv.gyp:libuv#host' ],
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
}],
|
||||
|
||||
[ 'node_shared_simdutf=="false"', {
|
||||
'dependencies': [ 'deps/simdutf/simdutf.gyp:simdutf' ],
|
||||
'dependencies': [ 'tools/v8_gypfiles/v8.gyp:simdutf' ],
|
||||
}],
|
||||
|
||||
[ 'node_shared_brotli=="false"', {
|
||||
|
||||
@@ -87,6 +87,12 @@
|
||||
}, {
|
||||
'v8_enable_private_mapping_fork_optimization': 0,
|
||||
}],
|
||||
|
||||
['OS in "aix os400"', {
|
||||
'v8_enable_leaptiering': 0,
|
||||
}, {
|
||||
'v8_enable_leaptiering': 1,
|
||||
}],
|
||||
],
|
||||
|
||||
# Variables from BUILD.gn
|
||||
@@ -483,6 +489,9 @@
|
||||
['v8_enable_extensible_ro_snapshot==1', {
|
||||
'defines': ['V8_ENABLE_EXTENSIBLE_RO_SNAPSHOT',],
|
||||
}],
|
||||
['v8_enable_leaptiering==1', {
|
||||
'defines': ['V8_ENABLE_LEAPTIERING',],
|
||||
}],
|
||||
['v8_enable_precise_zone_stats==1', {
|
||||
'defines': ['V8_ENABLE_PRECISE_ZONE_STATS',],
|
||||
}],
|
||||
|
||||
@@ -716,7 +716,10 @@
|
||||
}],
|
||||
# Temporary refs: https://github.com/nodejs/node/pull/23801
|
||||
['v8_enable_handle_zapping==1', {
|
||||
'defines': ['ENABLE_HANDLE_ZAPPING',],
|
||||
'defines': [
|
||||
'ENABLE_LOCAL_HANDLE_ZAPPING',
|
||||
'ENABLE_GLOBAL_HANDLE_ZAPPING',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
||||
|
||||
@@ -1056,6 +1056,8 @@
|
||||
'v8_zlib',
|
||||
'v8_pch',
|
||||
'fp16',
|
||||
'highway',
|
||||
'simdutf',
|
||||
'abseil.gyp:abseil',
|
||||
],
|
||||
'includes': ['inspector.gypi'],
|
||||
@@ -2260,5 +2262,69 @@
|
||||
],
|
||||
},
|
||||
}, # fp16
|
||||
{
|
||||
'target_name': 'highway',
|
||||
'type': 'static_library',
|
||||
'toolsets': ['host', 'target'],
|
||||
'variables': {
|
||||
'HIGHWAY_ROOT': '../../deps/v8/third_party/highway',
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(HIGHWAY_ROOT)/src',
|
||||
],
|
||||
'conditions': [
|
||||
['v8_target_arch=="ia32"', {
|
||||
'defines': ['HWY_BROKEN_TARGETS=(HWY_AVX2|HWY_AVX3)',],
|
||||
}],
|
||||
['v8_target_arch=="arm64"', {
|
||||
'defines': ['HWY_BROKEN_TARGETS=HWY_ALL_SVE',],
|
||||
}],
|
||||
['v8_target_arch=="ppc64" or v8_target_arch=="s390x"', {
|
||||
'defines': ['TOOLCHAIN_MISS_ASM_HWCAP_H',],
|
||||
}],
|
||||
['v8_target_arch=="s390x"', {
|
||||
'defines': ['HWY_BROKEN_EMU128=0',],
|
||||
}],
|
||||
['OS == "aix"', {
|
||||
'defines': ['HWY_BROKEN_EMU128=0',],
|
||||
}],
|
||||
['v8_target_arch=="arm" and arm_version==7', {
|
||||
'defines': ['HWY_BROKEN_EMU128=0',],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'include_dirs': [
|
||||
'<(HIGHWAY_ROOT)/src',
|
||||
],
|
||||
'conditions': [
|
||||
['v8_target_arch=="ia32"', {
|
||||
'defines': ['HWY_BROKEN_TARGETS=(HWY_AVX2|HWY_AVX3)',],
|
||||
}],
|
||||
['v8_target_arch=="arm64"', {
|
||||
'defines': ['HWY_BROKEN_TARGETS=HWY_ALL_SVE',],
|
||||
}],
|
||||
['v8_target_arch=="ppc64" or v8_target_arch=="s390x"', {
|
||||
'defines': ['TOOLCHAIN_MISS_ASM_HWCAP_H',],
|
||||
}],
|
||||
],
|
||||
'sources': [
|
||||
'<!@pymod_do_main(GN-scraper "<(HIGHWAY_ROOT)/BUILD.gn" "source_set.\\"libhwy.*?sources = ")',
|
||||
],
|
||||
}, # highway
|
||||
{
|
||||
'target_name': 'simdutf',
|
||||
'type': 'static_library',
|
||||
'toolsets': ['host', 'target'],
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(V8_ROOT)/third_party/simdutf',
|
||||
],
|
||||
},
|
||||
'include_dirs': ['.'],
|
||||
'sources': [
|
||||
'<(V8_ROOT)/third_party/simdutf/simdutf.cpp',
|
||||
],
|
||||
}, # simdutf
|
||||
],
|
||||
}
|
||||
Reference in new issue
Block a user