Changes between Version 5 and Version 6 of Building/Modifying


Ignore:
Timestamp:
May 20, 2009 9:31:34 PM (6 years ago)
Author:
nr
Comment:

say how to remove a GHC source file

Legend:

Unmodified
Added
Removed
Modified
  • Building/Modifying

    v5 v6  
    11
    22
    3 '''NOTE''': this page relates to the new GHC build system, which was added to GHC in April 2009. For documentation of the "old" build system, see [wiki:Building/Old/Using] and [wiki:Building/BuildSystem].
     3'''NOTE''': this page relates to the new GHC build system, which was added to GHC in April 2009. For documentation of the "old" build system, see [wiki:Attic/Building/Old/Using] and [wiki:Attic/Building/BuildSystem].
    44
    55= Modifying the build system =
     
    6565 * Add your module to the `exposed-modules` section of [[GhcFile(compiler/ghc.cabal.in)]]
    6666 * {{{cd compiler; make stage2}}}
     67
     68=== Removing a source file from GHC ===
     69
     70To retire a GHC source file that is no longer needed:
     71
     72  * Remove the working copy of the file (darcs will notice it is gone; if you are using git use {{{git rm}}}.
     73  * Remove the module from the list of modules in [[GhcFile(compiler/ghc.cabal.in)]].
     74  * To remove all mention of the file from derived dependency files, it is necessary to do something on the order of
     75{{{
     76cd $TOP
     77sh config.status
     78make all_compiler_stage1
     79}}}
     80    or {{{make all_compiler_stage2}}} if you prefer.
     81
     82  If you wish something slower but more confident, you may {{{cd $TOP; ./configure; make}}}.
    6783
    6884=== Adding a source file to the RTS ===