Skip to content

Commit

Permalink
wasm: disable error ret tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
shritesh authored and andrewrk committed Apr 11, 2019
1 parent b960f1d commit 5f8dbca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7953,7 +7953,8 @@ static void init(CodeGen *g) {
}
}

g->have_err_ret_tracing = g->build_mode != BuildModeFastRelease && g->build_mode != BuildModeSmallRelease;
bool is_wasm = g->zig_target->arch == ZigLLVM_wasm32 || g->zig_target->arch == ZigLLVM_wasm64;
g->have_err_ret_tracing = !is_wasm && g->build_mode != BuildModeFastRelease && g->build_mode != BuildModeSmallRelease;

define_builtin_fns(g);
Error err;
Expand Down

0 comments on commit 5f8dbca

Please sign in to comment.