Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions bazel/external/v8.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 1. Disable pointer compression (limits the maximum number of WasmVMs).
# 2. Don't expose Wasm C API (only Wasm C++ API).
# 3. Fix linking on Linux (needed only for branch-heads/10.0).

diff --git a/BUILD.bazel b/BUILD.bazel
index 5fb10d3940..a19930d36e 100644
Expand Down Expand Up @@ -33,3 +34,31 @@ index ce3f569fd5..dc8a4c4f6a 100644
} // extern "C"
+
+#endif
diff --git a/bazel/defs.bzl b/bazel/defs.bzl
index dee5e69cc4..070fadb969 100644
--- a/bazel/defs.bzl
+++ b/bazel/defs.bzl
@@ -159,8 +159,21 @@ def _default_args():
"DbgHelp.lib",
"Advapi32.lib",
],
- "@v8//bazel/config:is_macos": ["-pthread"],
- "//conditions:default": ["-Wl,--no-as-needed -ldl -pthread"],
+ "@v8//bazel/config:is_macos": [
+ "-pthread",
+ ],
+ "@v8//bazel/config:is_android": [
+ "-Wl,--no-as-needed",
+ "-ldl",
+ "-pthread",
+ ],
+ "@v8//bazel/config:is_linux": [
+ "-Wl,--no-as-needed",
+ "-ldl",
+ "-lrt",
+ "-pthread",
+ ],
+ "//conditions:default": [],
}) + select({
":should_add_rdynamic": ["-rdynamic"],
"//conditions:default": [],
10 changes: 5 additions & 5 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def proxy_wasm_cpp_host_repositories():
maybe(
git_repository,
name = "v8",
# 10.0.101
commit = "a3377e2234a32e1a67a620a180415b40f3dadb80",
# 10.0.139.6
commit = "1e242a567b609aa18ce46f7b04cc51fd85756b67",
remote = "https://chromium.googlesource.com/v8/v8",
shallow_since = "1644336206 +0000",
shallow_since = "1646671271 +0000",
patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"],
patch_args = ["-p1"],
)
Expand Down Expand Up @@ -149,9 +149,9 @@ def proxy_wasm_cpp_host_repositories():
new_git_repository,
name = "com_googlesource_chromium_zlib",
build_file = "@v8//:bazel/BUILD.zlib",
commit = "3fc79233fe8ff5cf39fec4c8b8a46272d4f11cec",
commit = "9538f4194f6e5eff1bd59f2396ed9d05b1a8d801",
remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git",
shallow_since = "1644209500 -0800",
shallow_since = "1644963419 -0800",
)

native.bind(
Expand Down