Skip to content

Commit

Permalink
Windows bugfixes + some optimization work.
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalFir committed Sep 14, 2024
1 parent 0a873d5 commit e19307e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions cilly/src/v2/opt/opt_fuel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ impl OptFuel {
pub fn exchausted(&self) -> bool {
self.0 == 0
}

pub fn raw(&self) -> u32 {
self.0
}
pub fn from_raw(raw: u32) -> Self {
Self(raw)
}
}
#[test]
fn opt_fuel() {
Expand Down
4 changes: 2 additions & 2 deletions src/compile_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ pub fn absolute_backend_path() -> PathBuf {
if cfg!(target_os = "linux") {
std::fs::canonicalize("target/debug/librustc_codegen_clr.so").unwrap()
} else if cfg!(target_os = "windows") {
std::fs::canonicalize("target/debug/librustc_codegen_clr.dll").unwrap()
std::fs::canonicalize("target/debug/rustc_codegen_clr.dll").unwrap()
} else if cfg!(target_os = "macos") {
std::fs::canonicalize("target/debug/librustc_codegen_clr.dylib").unwrap()
} else {
Expand All @@ -627,7 +627,7 @@ pub fn absolute_backend_path() -> PathBuf {
} else if cfg!(target_os = "linux") {
std::fs::canonicalize("target/release/librustc_codegen_clr.so").unwrap()
} else if cfg!(target_os = "windows") {
std::fs::canonicalize("target/release/librustc_codegen_clr.dll").unwrap()
std::fs::canonicalize("target/release/rustc_codegen_clr.dll").unwrap()
} else if cfg!(target_os = "macos") {
std::fs::canonicalize("target/release/librustc_codegen_clr.dylib").unwrap()
} else {
Expand Down

0 comments on commit e19307e

Please sign in to comment.