File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
bazel/emscripten_toolchain Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,9 @@ def _impl(ctx):
363
363
# Set if enabling exceptions.
364
364
feature (name = "exceptions" ),
365
365
366
+ # Set if enabling wasm_exceptions.
367
+ feature (name = "wasm_exceptions" ),
368
+
366
369
# This feature overrides the default optimization to prefer execution speed
367
370
# over binary size (like clang -O3).
368
371
feature (
@@ -515,7 +518,7 @@ def _impl(ctx):
515
518
flags = [
516
519
"-fno-exceptions" ,
517
520
],
518
- not_features = ["exceptions" ],
521
+ not_features = ["exceptions" , "wasm_exceptions" ],
519
522
),
520
523
flag_set (
521
524
actions = all_cpp_compile_actions ,
@@ -524,6 +527,14 @@ def _impl(ctx):
524
527
],
525
528
features = ["exceptions" ],
526
529
),
530
+ flag_set (
531
+ actions = all_cpp_compile_actions +
532
+ all_link_actions ,
533
+ flags = [
534
+ "-fwasm-exceptions" ,
535
+ ],
536
+ features = ["wasm_exceptions" ],
537
+ ),
527
538
# All compiles (and implicitly link)
528
539
flag_set (
529
540
actions = all_compile_actions +
You can’t perform that action at this time.
0 commit comments