From bc13f23f7e25d750df9b0a7bfe891a3d69f995f3 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 24 May 2024 18:32:09 +0100 Subject: [PATCH] build: fix `--enable-d8` builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add `v8_abseil` as a dependency for `d8` and use scraping to pick up the list of source files (including the previously missing `src/d8/d8-test.cc`). PR-URL: https://github.com/nodejs/node/pull/53106 Reviewed-By: Michaƫl Zasso Reviewed-By: Michael Dawson Reviewed-By: Chengzhong Wu --- tools/v8_gypfiles/d8.gyp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/v8_gypfiles/d8.gyp b/tools/v8_gypfiles/d8.gyp index ba79ebcba7f..ef071b40710 100644 --- a/tools/v8_gypfiles/d8.gyp +++ b/tools/v8_gypfiles/d8.gyp @@ -20,6 +20,7 @@ 'v8.gyp:v8_libbase', 'v8.gyp:v8_libplatform', 'v8.gyp:generate_bytecode_builtins_list', + 'v8.gyp:v8_abseil', ], # Generated source files need this explicitly: 'include_dirs+': [ @@ -28,15 +29,7 @@ '<(SHARED_INTERMEDIATE_DIR)', ], 'sources': [ - '<(V8_ROOT)/src/d8/async-hooks-wrapper.cc', - '<(V8_ROOT)/src/d8/async-hooks-wrapper.h', - '<(V8_ROOT)/src/d8/d8-console.cc', - '<(V8_ROOT)/src/d8/d8-console.h', - '<(V8_ROOT)/src/d8/d8-js.cc', - '<(V8_ROOT)/src/d8/d8-platforms.cc', - '<(V8_ROOT)/src/d8/d8-platforms.h', - '<(V8_ROOT)/src/d8/d8.cc', - '<(V8_ROOT)/src/d8/d8.h', + '