Don't double remove obj path extension

Don't remember why I had it like this

Fixes #17
This commit is contained in:
Luke Street 2023-12-20 20:22:00 -07:00
parent 6f2bb62082
commit 2681e51443
1 changed files with 2 additions and 2 deletions

View File

@ -111,9 +111,9 @@ pub fn generate_ldscript_partial(
}
pub fn obj_path_for_unit(unit: &str) -> PathBuf {
PathBuf::from_slash(unit).with_extension("").with_extension("o")
PathBuf::from_slash(unit).with_extension("o")
}
pub fn asm_path_for_unit(unit: &str) -> PathBuf {
PathBuf::from_slash(unit).with_extension("").with_extension("s")
PathBuf::from_slash(unit).with_extension("s")
}