EPA: preserve comments in data decls
[ghc.git] / INSTALL.md
blob45fe5427b09eb0c1195d7a1dccde52425f778316
1 Building & Installing
2 =====================
4 For full information on building GHC, see the GHC Building Guide [1].
5 Here follows a summary - if you get into trouble, the Building Guide
6 has all the answers.
8 Before building GHC you may need to install some other tools and
9 libraries.  See "Setting up your system for building GHC" [2].
11 N.B. in particular you need GHC installed in order to build GHC,
12 because the compiler is itself written in Haskell.  For instructions
13 on how to port GHC to a new platform, see the Building Guide [1].
15 For building library documentation, you'll need Haddock [3].  To build
16 the compiler documentation, you need [Sphinx](http://www.sphinx-doc.org/) and
17 XeLaTex (only for PDF output).
19 Quick start:  the following gives you a default build:
21     $ ./boot
22     $ ./configure
23     $ ./hadrian/build
25   On Windows, you need an extra repository containing some build tools.
26   These can be downloaded for you by configure. This only needs to be done once by running:
28     $ ./configure --enable-tarballs-autodownload
30 You can use `-jN` option to parallelize the build. It's generally best
31 to set `N` somewhere around the core count of the build machine.
33 The `./boot` step is only necessary if this is a tree checked out from
34 git. For source distributions downloaded from GHC's web site, this step has
35 already been performed.
37 These steps give you the default build, which includes everything
38 optimised and built in various ways (eg. profiling libs are built).
39 It can take a long time.  To customise the build, see the file
40 `HACKING.md`.
42 References
43 ==========
45  - [1] http://www.haskell.org/ghc/
46  - [2] https://gitlab.haskell.org/ghc/ghc/wikis/building/preparation
47  - [3] http://www.haskell.org/haddock/