From 2681e514433b61c0eda0433a27b0ca22271d98ad Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 20 Dec 2023 20:22:00 -0700 Subject: [PATCH] Don't double remove obj path extension Don't remember why I had it like this Fixes #17 --- src/util/lcf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/lcf.rs b/src/util/lcf.rs index 1429a8e..7bd0a82 100644 --- a/src/util/lcf.rs +++ b/src/util/lcf.rs @@ -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") }