Skip to content

Commit

Permalink
Tiny fixies to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Aug 4, 2024
1 parent 361c2f5 commit 1f86e87
Show file tree
Hide file tree
Showing 5 changed files with 1,390 additions and 993 deletions.
2 changes: 1 addition & 1 deletion cilly/src/v2/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ lazy_static! {
}
};
}
#[derive(Clone, Copy)]
#[derive(Clone, Copy, PartialEq, Eq)]
pub enum IlasmFlavour {
Clasic,
Modern,
Expand Down
6 changes: 5 additions & 1 deletion cilly/src/v2/il_exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use lazy_static::*;
use crate::{ utilis::assert_unique, v2::MethodImpl, };

use super::{
asm::ILASM_PATH, cilroot::BranchCond, int, Assembly, CILIter, CILIterElem, CILNode, ClassRefIdx, Exporter, NodeIdx, RootIdx, Type,asm::IlasmFlavour
asm::{IlasmFlavour, ILASM_FLAVOUR, ILASM_PATH}, cilroot::BranchCond, int, Assembly, CILIter, CILIterElem, CILNode, ClassRefIdx, Exporter, NodeIdx, RootIdx, Type
};

pub struct ILExporter {
Expand Down Expand Up @@ -1008,6 +1008,10 @@ impl Exporter for ILExporter {
.arg(asm_type)
// .arg("-FOLD") saves up on space, consider enabling.
;
if *ILASM_FLAVOUR == IlasmFlavour::Clasic{
// Limit the memory usage of mono
cmd.env("MONO_GC_PARAMS","soft-heap-limit=500m");
}
let out = cmd.output().unwrap();
let stdout = String::from_utf8_lossy(&out.stdout);
let stderr = String::from_utf8_lossy(&out.stderr);
Expand Down
Loading

0 comments on commit 1f86e87

Please sign in to comment.