diff --git a/codegen/luau/src/bin/wasm2luau.rs b/codegen/luau/src/bin/wasm2luau.rs index c3c2ce9..ebbb47a 100644 --- a/codegen/luau/src/bin/wasm2luau.rs +++ b/codegen/luau/src/bin/wasm2luau.rs @@ -20,6 +20,7 @@ fn do_runtime(lock: &mut dyn Write) -> Result<()> { let runtime = codegen_luau::RUNTIME; let numeric = codegen_luau::NUMERIC; + writeln!(lock, "--!optimize 2")?; writeln!(lock, "local Integer = (function()")?; writeln!(lock, "{numeric}")?; writeln!(lock, "end)()")?;