Skip to content

Commit

Permalink
通过v8_monolith改名为wee8的方式支持wee8
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jul 10, 2024
1 parent df4855f commit f20398e
Showing 1 changed file with 19 additions and 33 deletions.
52 changes: 19 additions & 33 deletions patches/enable_wee8_v11.8.172.patch
Original file line number Diff line number Diff line change
@@ -1,44 +1,30 @@
diff --git a/BUILD.gn b/BUILD.gn
index dd97c4f922c..f028657f12a 100644
index dd97c4f922c..64e3e0d0782 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -6694,13 +6694,13 @@ if (v8_monolithic) {
}
}
@@ -6675,14 +6675,14 @@ if (v8_check_header_includes) {
# Produce a single static library for embedders
#

-if (v8_enable_webassembly) {
+# if (v8_enable_webassembly) {
v8_static_library("wee8") {
-if (v8_monolithic) {
+#if (v8_monolithic) {
assert(!is_component_build,
"Set `is_component_build = false` for v8_monolithic.")

# Using external startup data would produce separate files.
assert(!v8_use_external_startup_data,
"Set `v8_use_external_startup_data = false` for v8_monolithic.")
- v8_static_library("v8_monolith") {
+ v8_static_library("wee8") {
deps = [
":v8_base",
":v8",
":v8_libbase",
":v8_libplatform",
- ":v8_shared_internal_headers",
+# ":v8_shared_internal_headers",
":v8_snapshot",
"//build/win:default_exe_manifest",
]
@@ -6712,15 +6712,15 @@ if (v8_enable_webassembly) {
@@ -6692,7 +6692,7 @@ if (v8_monolithic) {

configs = [ ":internal_config" ]

- sources = [
- ### gcmole(all) ###
- "src/wasm/c-api.cc",
- "src/wasm/c-api.h",
- "third_party/wasm-api/wasm.h",
- "third_party/wasm-api/wasm.hh",
- ]
+# sources = [
+# ### gcmole(all) ###
+# "src/wasm/c-api.cc",
+# "src/wasm/c-api.h",
+# "third_party/wasm-api/wasm.h",
+# "third_party/wasm-api/wasm.hh",
+# ]
}
-}
+# }
+#}

###############################################################################
# Executables
if (v8_enable_webassembly) {
v8_static_library("wee8") {

0 comments on commit f20398e

Please sign in to comment.