Skip to content

Commit b7d7e9a

Browse files
richardlautargos
authored andcommitted
build: fix --enable-d8 builds
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: #53106 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent a371dea commit b7d7e9a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tools/v8_gypfiles/d8.gyp

+2-9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'v8.gyp:v8_libbase',
2121
'v8.gyp:v8_libplatform',
2222
'v8.gyp:generate_bytecode_builtins_list',
23+
'v8.gyp:v8_abseil',
2324
],
2425
# Generated source files need this explicitly:
2526
'include_dirs+': [
@@ -28,15 +29,7 @@
2829
'<(SHARED_INTERMEDIATE_DIR)',
2930
],
3031
'sources': [
31-
'<(V8_ROOT)/src/d8/async-hooks-wrapper.cc',
32-
'<(V8_ROOT)/src/d8/async-hooks-wrapper.h',
33-
'<(V8_ROOT)/src/d8/d8-console.cc',
34-
'<(V8_ROOT)/src/d8/d8-console.h',
35-
'<(V8_ROOT)/src/d8/d8-js.cc',
36-
'<(V8_ROOT)/src/d8/d8-platforms.cc',
37-
'<(V8_ROOT)/src/d8/d8-platforms.h',
38-
'<(V8_ROOT)/src/d8/d8.cc',
39-
'<(V8_ROOT)/src/d8/d8.h',
32+
'<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_executable.\\"d8\\".*?sources = ")',
4033
],
4134
'conditions': [
4235
[ 'want_separate_host_toolset==1', {

0 commit comments

Comments
 (0)