[GHC] #2258: ghc --cleanup

GHC ghc-devs at haskell.org
Tue Jan 26 14:51:42 UTC 2016


#2258: ghc --cleanup
-------------------------------------+-------------------------------------
        Reporter:  claus             |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  6.8.2
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #4114             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bheklilr):

 Replying to [comment:26 shubhaml]:
 > I'm willing to help @bheklilr with this. I'm a first-time contributor
 too.
 >
 > So far I've created a {{{--cleanup}}} flag which does exactly what
 {{{--make}}} does. I need to figure out the subsequent parts.
 >
 > One idea is that {{{hi}}} and {{{o}}} files will be deleted only if
 target directories are not specified using {{{-odir}}} and {{{-hidir}}}
 (since the target directories could be {{{/dev/null}}}). In this case
 these files are put in the same directory with the same name as the source
 file, and will be deleted. Other generated files from {{{-keep-*-files}}}
 will be preserved.
 >
 > So running with {{{ghc --cleanup}}} will, in effect, only create
 executables, and possibly some intermediate files other than {{{hi}}} and
 {{{o}}}. Is this a good idea? Also, have I missed something?

 I'm going to have to just pass this to you.  I've been struggling with my
 home computer, trying to diagnose what appears to be hardware problems so
 I haven't had a stable computer for about a week now and won't for at
 least another week.  Sorry to pass it on without having gotten any work
 done on it myself, this just hasn't been a good month for me, thanks for
 looking into it already =)

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2258#comment:29>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list