forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy_wasm_cpp_sdk.patch
More file actions
29 lines (28 loc) · 1.19 KB
/
proxy_wasm_cpp_sdk.patch
File metadata and controls
29 lines (28 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/bazel/defs.bzl b/bazel/defs.bzl
--- a/bazel/defs.bzl
+++ b/bazel/defs.bzl
@@ -20,6 +20,8 @@ def _optimized_wasm_cc_binary_transition_impl(settings, attr):
"//command_line_option:copt": ["-O3", "-flto", "-DSTANDALONE_WASM"],
"//command_line_option:cxxopt": [],
"//command_line_option:linkopt": [],
+ # LTO is not compatible with fission (split DWARF), so disable fission.
+ "//command_line_option:fission": "no",
"//command_line_option:collect_code_coverage": False,
}
@@ -30,6 +32,7 @@ _optimized_wasm_cc_binary_transition = transition(
"//command_line_option:copt",
"//command_line_option:cxxopt",
"//command_line_option:linkopt",
+ "//command_line_option:fission",
"//command_line_option:collect_code_coverage",
],
)
@@ -103,8 +106,6 @@ def proxy_wasm_cc_binary(
"-sEXPORTED_FUNCTIONS=_malloc",
# Allow allocating memory past initial heap size
"-sALLOW_MEMORY_GROWTH=1",
- # Initial amount of heap memory. 64KB matches Rust SDK starting heap size.
- "-sINITIAL_HEAP=64KB",
],
tags = tags + [
"manual",