[GHC] #2258: ghc --cleanup
GHC
ghc-devs at haskell.org
Sun Jan 3 15:29:46 UTC 2016
#2258: ghc --cleanup
-------------------------------------+-------------------------------------
Reporter: claus | Owner:
Type: feature request | Status: new
Priority: lowest | Milestone: 8.0.1
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 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?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2258#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list