From 33c9137c77995883b284ad11408ec0e7018d1bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 15 Nov 2023 15:38:05 +0100 Subject: [PATCH] tools: roughly port v8_abseil to gyp Refs: https://github.com/v8/v8/commit/fa7521ef3eb6c69fa398809e7ce4a869c94661fa Closes: https://github.com/nodejs/node-v8/issues/211 --- tools/v8_gypfiles/features.gypi | 2 + tools/v8_gypfiles/v8.gyp | 315 ++++++++++++++++++++++++++++++++ 2 files changed, 317 insertions(+) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index 6a9ddb7b3a32bb..db9bda604bc176 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -452,6 +452,8 @@ }], ['dcheck_always_on!=0', { 'defines': ['DEBUG',], + }, { + 'defines': ['NDEBUG',], }], ['v8_enable_verify_csa==1', { 'defines': ['ENABLE_VERIFY_CSA',], diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp index 9fc98c08ef6cf7..b648e2aba0df5d 100644 --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -248,6 +248,7 @@ 'v8_base_without_compiler', 'v8_initializers', 'v8_maybe_icu', + 'v8_abseil', ], 'sources': [ '<(V8_ROOT)/src/init/setup-isolate-full.cc', @@ -263,6 +264,7 @@ 'dependencies': [ 'generate_bytecode_builtins_list', 'run_torque', + 'v8_abseil', ], 'cflags!': ['-O3'], 'cflags': ['-O1'], @@ -291,6 +293,7 @@ 'v8_base_without_compiler', 'v8_shared_internal_headers', 'v8_pch', + 'v8_abseil', ], 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)', @@ -572,6 +575,7 @@ 'v8_heap_base_headers', 'generate_bytecode_builtins_list', 'run_torque', + 'v8_abseil', 'v8_libbase', ], 'direct_dependent_settings': { @@ -891,6 +895,7 @@ 'v8_shared_internal_headers', 'v8_turboshaft', 'v8_pch', + 'v8_abseil', ], 'conditions': [ ['v8_enable_turbofan==1', { @@ -913,6 +918,7 @@ 'v8_libbase', 'v8_shared_internal_headers', 'v8_pch', + 'v8_abseil', ], 'sources': [ '