Changes between Version 16 and Version 17 of Building/Rebuilding


Ignore:
Timestamp:
Mar 10, 2015 1:15:14 PM (5 years ago)
Author:
thomie
Comment:

Refer to Building/Hacking, which is more up to date.

Legend:

Unmodified
Added
Removed
Modified
  • Building/Rebuilding

    v16 v17  
    1 
    2 
    3 = How do I rebuild GHC after updating or changing it? =
    4 
    5 To pull new changes, use the [wiki:Building/SyncAll#Pullingnewpatches sync-all script].
    6 
    7 After pulling changes, the following sequence should be enough to update your build:
    8 
    9 {{{
    10 $ perl boot
    11 $ ./configure
    12 $ make
    13 }}}
    14 
    15 Don't forget to add any necessary flags to `./configure` if you need them.
    16 
    17 If you're hacking on GHC, see [wiki:Building/Using#DevelopinginaGHCbuildtree Developing in a GHC build tree] for ways of only rebuilding parts of GHC. In particular, running `make 2` in the `compiler` or `ghc` directory is quite handy.
    18 
    19 == Things that might go wrong ==
    20 
    21  * If you add or remove modules from GHC, make sure you edit `ghc.cabal.in`; see [wiki:Commentary/SourceTree]
    22 
    23  * When files move around in the tree, this procedure will leave old files lying around.  The build system typically won't know how to clean up the old files.  Usually they won't cause a problem, but in the event that they do it's easy enough to wipe your build tree and start afresh, especially if you use [wiki:Building/Using#Sourcetreesandbuildtrees a separate build tree].
     1This information has been merged with [wiki:Building/Hacking#Buildingaftermakingchanges].