From 7a7e77db938d96eea7d55a7472dd5d718c4ecbc2 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 | 259 ++++++++++++++++++++++++++++++++ 2 files changed, 261 insertions(+) diff --git a/tools/v8_gypfiles/features.gypi b/tools/v8_gypfiles/features.gypi index b70319d220d..3a6811cfb48 100644 --- a/tools/v8_gypfiles/features.gypi +++ b/tools/v8_gypfiles/features.gypi @@ -443,6 +443,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 70f38e853a5..66269da9748 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', @@ -262,6 +263,7 @@ 'v8_base_without_compiler', 'v8_shared_internal_headers', 'v8_pch', + 'v8_abseil', ], 'include_dirs': [ '<(SHARED_INTERMEDIATE_DIR)', @@ -536,6 +538,7 @@ 'v8_heap_base_headers', 'generate_bytecode_builtins_list', 'run_torque', + 'v8_abseil', 'v8_libbase', ], 'direct_dependent_settings': { @@ -850,6 +853,7 @@ 'v8_shared_internal_headers', 'v8_turboshaft', 'v8_pch', + 'v8_abseil', ], 'conditions': [ ['v8_enable_turbofan==1', { @@ -872,6 +876,7 @@ 'v8_libbase', 'v8_shared_internal_headers', 'v8_pch', + 'v8_abseil', ], 'sources': [ '