Skip to content

Commit 5be36b6

Browse files
committed
Add -fwasm-exceptions
1 parent fa66e2d commit 5be36b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ impl Build {
159159
config
160160
.define("LUA_USE_POSIX", None)
161161
.cpp(true)
162-
.flag("-fexceptions"); // Enable exceptions to be caught
162+
.flag("-fexceptions")
163+
.flag("-fwasm-exceptions"); // Enable exceptions to be caught
163164

164165
let cpp_source_dir = out_dir.join("cpp_source");
165166
if cpp_source_dir.exists() {

0 commit comments

Comments
 (0)