From dde771de24f0e02d00867e79f7c68e526475d7c6 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 15 Jan 2008 20:47:16 +0000 Subject: [PATCH] Fix generating dependencies for different ways now we use FilePath We were making filenames like dist/build/GHC/Base.p_.o rather than dist/build/GHC/Base.p_o --- compiler/main/DriverMkDepend.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/main/DriverMkDepend.hs b/compiler/main/DriverMkDepend.hs index aad9b8a..ffafcca 100644 --- a/compiler/main/DriverMkDepend.hs +++ b/compiler/main/DriverMkDepend.hs @@ -275,7 +275,9 @@ insertSuffixes insertSuffixes file_name extras = file_name : [ basename <.> (extra ++ "_" ++ suffix) | extra <- extras ] where - (basename, suffix) = splitExtension file_name + (basename, suffix) = case splitExtension file_name of + -- Drop the "." from the extension + (b, s) -> (b, drop 1 s) ----------------------------------------------------------------- -- 1.7.10.4