Skip to content

Commit f9373e3

Browse files
committed
patch v8 monolithic snapshot build
1 parent 3599d7b commit f9373e3

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

patches/v8_monolith_snapshot.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/BUILD.gn b/BUILD.gn
2+
index 0063c600b4..d8ec939d9c 100644
3+
--- a/BUILD.gn
4+
+++ b/BUILD.gn
5+
@@ -6037,7 +6037,7 @@ if (v8_monolithic) {
6+
assert(!is_component_build)
7+
8+
# Using external startup data would produce separate files.
9+
- assert(!v8_use_external_startup_data)
10+
+ # assert(!v8_use_external_startup_data)
11+
v8_static_library("v8_monolith") {
12+
deps = [
13+
":v8",

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARCH=$2
88

99
GN_ARGS_BASE="
1010
is_component_build=false
11-
v8_monolithic=false
11+
v8_monolithic=true
1212
v8_static_library=true
1313
use_custom_libcxx=false
1414
icu_use_data_file=false
@@ -110,7 +110,7 @@ function buildArch()
110110
copySnapshot $arch
111111
copyMkcodecache $arch
112112
else
113-
date ; ninja ${NINJA_PARAMS} -C "out.v8.${arch}" v8_base_without_compiler v8_compiler v8_libplatform v8_libbase v8_bigint v8_snapshot torque_generated_initializers torque_generated_definitions cppgc_base v8_heap_base_headers v8_heap_base run_mksnapshot_default; date
113+
date ; ninja ${NINJA_PARAMS} -C "out.v8.${arch}" ; date
114114
copyLib $arch
115115
copySnapshot $arch
116116
# copyMkcodecache $arch

scripts/patch.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ source $(dirname $0)/env.sh
55
# Patchset management that manage files by commented purpose
66
######################################################################################
77
V8_PATCHSET_ANDROID=(
8+
"v8_monolith_snapshot.patch"
9+
810
# V8 shared library support
911
# "v8_shared_library.patch"
1012

0 commit comments

Comments
 (0)