This commit is contained in:
Jakub Doka 2024-10-22 12:57:49 +02:00
parent 7d53706e71
commit b95bddac7b
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ pub fn run_compiler(root_file: &str, options: Options, out: &mut Vec<u8>) -> std
codegen.files = &parsed.ast;
codegen.push_embeds(parsed.embeds);
codegen.generate();
codegen.generate(0);
if options.dump_asm {
codegen
.disasm(unsafe { std::mem::transmute::<&mut Vec<u8>, &mut String>(out) })

View file

@ -4016,7 +4016,7 @@ mod tests {
let mut codegen = super::Codegen { files, ..Default::default() };
codegen.push_embeds(embeds);
codegen.generate();
codegen.generate(0);
{
let errors = codegen.errors.borrow();