Changes between Version 7 and Version 8 of Building/Hacking


Ignore:
Timestamp:
Oct 6, 2006 9:24:08 AM (9 years ago)
Author:
simonmar
Comment:

mention not getting extralibs, and 'make stage1'

Legend:

Unmodified
Added
Removed
Modified
  • Building/Hacking

    v7 v8  
    2222build setup can make the difference between several hours to build 
    2323GHC, and less than an hour.  Here's how to do it. 
     24 
     25If you're just interested in working on GHC, then you probably don't want 
     26the "extralibs" libraries that we normally ship with GHC, having these in your 
     27source tree will just make the build take longer.  So when  
     28[wiki:Building/GettingTheSources getting the sources], run `darcs-all` without 
     29the `--extra` option. 
    2430 
    2531{{{mk/build.mk}}} is a GNU makefile that contains all your build settings. 
     
    8793  $ ./configure 
    8894  $ make 
     95}}} 
     96 
     97(See here for [wiki:Building/Problems what can go wrong].) 
     98 
     99If you just want to build stage 1, then instead you can say 
     100 
     101{{{ 
     102  $ make stage1 
     103}}} 
     104 
     105but note that the stage 1 compiler doesn't support GHCi or Template Haskell, those are compiled into stage 2 only (see  
     106[wiki:Building/Using#BootstrappingGHC BootstrappingGHC]). 
     107 
     108To install the compiler you built, you can say 
     109 
     110{{{ 
    89111  $ make install 
    90112}}} 
    91113 
    92 (See here for [wiki:Building/Problems what can go wrong].) 
     114However, you don't need to install it to use it.  Running `./compiler/stage1/ghc-inplace` from the build tree 
     115will invoke the stage1 compiler, and `./compiler/stage2/ghc-inplace` will invoke the stage2 compiler. 
    93116 
    94117== Building individual parts of the tree ==