From: sof Date: Tue, 17 Jun 2003 23:26:30 +0000 (+0000) Subject: [project @ 2003-06-17 23:26:30 by sof] X-Git-Tag: Approx_11550_changesets_converted~765 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f91a2e4cc88cd71c7e22895df297e5dfcdd66f84 [project @ 2003-06-17 23:26:30 by sof] apply SysTools.normalisePath to all fileish_args, not just source files --- diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index f6175e7..c4670a3 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -1,7 +1,7 @@ {-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-} ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.125 2003/06/10 17:54:56 sof Exp $ +-- $Id: Main.hs,v 1.126 2003/06/17 23:26:30 sof Exp $ -- -- GHC Driver program -- @@ -219,12 +219,11 @@ main = || looksLikeModuleName m || '.' `notElem` m - (raw_srcs, objs) = partition looks_like_an_input fileish_args - - -- To simplify the handling of filepaths, we normalise all source file - -- paths right away - e.g., for win32 platforms, backslashes are converted + -- To simplify the handling of filepaths, we normalise all filepaths right + -- away - e.g., for win32 platforms, backslashes are converted -- into forward slashes. - srcs = map normalisePath raw_srcs + normal_fileish_paths = map normalisePath fileish_args + (srcs, objs) = partition looks_like_an_input normal_fileish_paths mapM_ (add v_Ld_inputs) objs