tools: include toolchain.gypi in abseil.gyp

This sets proper SIMD build flags for abseil on ia32.

PR-URL: https://github.com/nodejs/node/pull/58678
Fixes: https://github.com/nodejs/node/issues/58569
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Chengzhong Wu
2025-06-20 10:27:25 +01:00
committed by GitHub
parent 3d608bbe8b
commit 4623d46b7c
3 changed files with 11 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
{
'includes': ['toolchain.gypi'],
'targets': [
{
'target_name': 'abseil',

View File

@@ -40,10 +40,16 @@
'ubsan_vptr%': 0,
'has_valgrind%': 0,
'coverage%': 0,
# Toolchain settings.
'v8_target_arch%': '<(target_arch)',
'v8_host_byteorder%': '<!("<(python)" -c "import sys; print(sys.byteorder)")',
'force_dynamic_crt%': 0,
# Enable control-flow integrity features, such as pointer authentication
# for ARM64.
'v8_control_flow_integrity%': 0,
# Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP
# registers d16-d31 in the generated code, both in the snapshot and for the
# ARM target. Leaving the default value of 'false' will avoid the use of
@@ -98,10 +104,6 @@
'gcmole%': 0,
},
'target_defaults': {
'include_dirs': [
'<(V8_ROOT)',
'<(V8_ROOT)/include',
],
'cflags!': ['-Wall', '-Wextra'],
'conditions': [
['clang==0 and OS!="win"', {

View File

@@ -36,6 +36,10 @@
},
'includes': ['toolchain.gypi', 'features.gypi'],
'target_defaults': {
'include_dirs': [
'<(V8_ROOT)',
'<(V8_ROOT)/include',
],
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': ['/utf-8']