diff --git a/lib/codegen/src/write.rs b/lib/codegen/src/write.rs index 1bd7bc3b3c..3f666fda24 100644 --- a/lib/codegen/src/write.rs +++ b/lib/codegen/src/write.rs @@ -79,6 +79,11 @@ fn write_preamble( writeln!(w, " {} = {}", jt, jt_data)?; } + if let Some(stack_limit) = func.stack_limit { + any = true; + writeln!(w, " stack_limit = {}", stack_limit)?; + } + Ok(any) }