File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,12 @@ load("@rules_cc//cc:defs.bzl", "cc_binary")
18
18
def _optimized_wasm_cc_binary_transition_impl (settings , attr ):
19
19
# TODO(PiotrSikora): Add -flto to copts/linkopts when fixed in emsdk.
20
20
# See: https://github.com/emscripten-core/emsdk/issues/971
21
+ #
22
+ # Define STANDALONE_WASM at compile time as well as link time (below).
23
+ # This fixes Abseil by not including Emscripten JS stacktraces + symbolization.
24
+ # TODO(martijneken): Remove after Abseil stops using this define.
21
25
return {
22
- "//command_line_option:copt" : ["-O3" ],
26
+ "//command_line_option:copt" : ["-O3" , "-DSTANDALONE_WASM" ],
23
27
"//command_line_option:cxxopt" : [],
24
28
"//command_line_option:linkopt" : [],
25
29
"//command_line_option:collect_code_coverage" : False ,
@@ -102,6 +106,8 @@ def proxy_wasm_cc_binary(
102
106
)
103
107
104
108
wasm_cc_binary (
109
+ standalone = True ,
110
+ threads = "off" ,
105
111
name = "wasm_" + name ,
106
112
cc_target = ":proxy_wasm_" + name .rstrip (".wasm" ),
107
113
tags = tags + [
You can’t perform that action at this time.
0 commit comments