forked from AbleOS/holey-bytes
ups
This commit is contained in:
parent
7d53706e71
commit
b95bddac7b
|
@ -93,7 +93,7 @@ pub fn run_compiler(root_file: &str, options: Options, out: &mut Vec<u8>) -> std
|
||||||
codegen.files = &parsed.ast;
|
codegen.files = &parsed.ast;
|
||||||
codegen.push_embeds(parsed.embeds);
|
codegen.push_embeds(parsed.embeds);
|
||||||
|
|
||||||
codegen.generate();
|
codegen.generate(0);
|
||||||
if options.dump_asm {
|
if options.dump_asm {
|
||||||
codegen
|
codegen
|
||||||
.disasm(unsafe { std::mem::transmute::<&mut Vec<u8>, &mut String>(out) })
|
.disasm(unsafe { std::mem::transmute::<&mut Vec<u8>, &mut String>(out) })
|
||||||
|
|
|
@ -4016,7 +4016,7 @@ mod tests {
|
||||||
let mut codegen = super::Codegen { files, ..Default::default() };
|
let mut codegen = super::Codegen { files, ..Default::default() };
|
||||||
codegen.push_embeds(embeds);
|
codegen.push_embeds(embeds);
|
||||||
|
|
||||||
codegen.generate();
|
codegen.generate(0);
|
||||||
|
|
||||||
{
|
{
|
||||||
let errors = codegen.errors.borrow();
|
let errors = codegen.errors.borrow();
|
||||||
|
|
Loading…
Reference in a new issue