1
- # 1. Disable pointer compression (limits the maximum number of WasmVMs).
2
- # 2. Don't expose Wasm C API (only Wasm C++ API).
3
-
4
1
diff --git a/BUILD.bazel b/BUILD.bazel
5
- index 5fb10d3940..a19930d36e 100644
2
+ index 4e89f90e7e..3fcb38b3f3 100644
6
3
--- a/BUILD.bazel
7
4
+++ b/BUILD.bazel
8
- @@ -161 ,7 +161 ,7 @@ v8_int(
5
+ @@ -157 ,7 +157 ,7 @@ v8_int(
9
6
# If no explicit value for v8_enable_pointer_compression, we set it to 'none'.
10
7
v8_string(
11
8
name = "v8_enable_pointer_compression",
@@ -14,11 +11,23 @@ index 5fb10d3940..a19930d36e 100644
14
11
)
15
12
16
13
# Default setting for v8_enable_pointer_compression.
14
+ diff --git a/bazel/defs.bzl b/bazel/defs.bzl
15
+ index e957c0fad3..063627b72b 100644
16
+ --- a/bazel/defs.bzl
17
+ +++ b/bazel/defs.bzl
18
+ @@ -131,6 +131,7 @@ def _default_args():
19
+ "-Wno-redundant-move",
20
+ "-Wno-return-type",
21
+ "-Wno-stringop-overflow",
22
+ + "-Wno-nonnull",
23
+ # Use GNU dialect, because GCC doesn't allow using
24
+ # ##__VA_ARGS__ when in standards-conforming mode.
25
+ "-std=gnu++17",
17
26
diff --git a/src/wasm/c-api.cc b/src/wasm/c-api.cc
18
- index ce3f569fd5..dc8a4c4f6a 100644
27
+ index 4473e205c0..65a6ec7e1d 100644
19
28
--- a/src/wasm/c-api.cc
20
29
+++ b/src/wasm/c-api.cc
21
- @@ -2238 ,6 +2238 ,8 @@ auto Instance::exports() const -> ownvec<Extern> {
30
+ @@ -2247 ,6 +2247 ,8 @@ auto Instance::exports() const -> ownvec<Extern> {
22
31
23
32
} // namespace wasm
24
33
@@ -27,7 +36,7 @@ index ce3f569fd5..dc8a4c4f6a 100644
27
36
// BEGIN FILE wasm-c.cc
28
37
29
38
extern "C" {
30
- @@ -3257 ,3 +3259 ,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) {
39
+ @@ -3274 ,3 +3276 ,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) {
31
40
#undef WASM_DEFINE_SHARABLE_REF
32
41
33
42
} // extern "C"
0 commit comments