[GHC] #2258: ghc --cleanup

GHC ghc-devs at haskell.org
Sat Apr 23 09:58:35 UTC 2016


#2258: ghc --cleanup
-------------------------------------+-------------------------------------
        Reporter:  claus             |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  6.8.2
      Resolution:                    |             Keywords:
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:                    |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * keywords:  newcomer =>


Comment:

 With #4114 done (though not mentioned in the release notes), you can now
 say

 {{{
 $ ghc Test.hs -no-keep-hi-files -no-keep-o-files
 }}}

 ... and the `.hi` and `.o` files won't be kept.

 If you had forgotton to use those flags at first:
 {{{
 $ ghc Test.hs

 $ ls *.hi *.o
 Test.hi Test.o
 }}}

 ... you can combine the mentioned flags with `-fforce-recomp` to delete
 the `.o` and `.hi` files:
 {{{
 $ ghc Test.hs -no-keep-hi-files -no-keep-o-files -fforce-recomp

 $ ls *.hi *.o

 }}}


 Do we still need a separate `--cleanup` flag?

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


More information about the ghc-tickets mailing list