|
Re: ghc 6.2 gets confused about Main.hi reuse: msg#00018lang.haskell.glasgow.bugs
> >The -ohi flag lets you rename the interface file, or -hisuf is useful > >for renaming a whole bunch of interface files if you want to build > >modules in two different ways in the same directory. > > We use -hidir/-odir to build for different platforms, so the only > problem comes from ghc using hidir/<platform>/Main.hi for > both pfe.hs and pfe_client.hs. Executables and sources have > different names, why not the interface files? Will try -ohi and > see if that helps. No, it doesn't (myghc--make is a slightly veiled call to ghc --make): cd refactorer; ./myghc--make -o pfe -ohi pfe.hi pfe.hs 2>&1 | tee -a log.txt c:\ghc\ghc-6.0.1\bin\ghc.exe: -ohi can only be used when compiling a single source file The simplest approach would be to take the presence of -o as a strong hint that there might be confusion about executables/Main modules and thus to rename the Main.hi-file as well when -o is present. Cheers, Claus
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Is this a known bug?, Simon Peyton-Jones |
|---|---|
| Next by Date: | Re: the woes of non-cvs haskellers, Claus Reinke |
| Previous by Thread: | Re: ghc 6.2 gets confused about Main.hi reuse, Claus Reinke |
| Next by Thread: | RE: ghc 6.2 gets confused about Main.hi reuse, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |