Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
882c4a60
Unverified
Commit
882c4a60
authored
Nov 04, 2017
by
Andrey Mokhov
Committed by
GitHub
Nov 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the git clone step, preparing for the merge
See
#440
[skip ci]
parent
c41d1ed7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
README.md
README.md
+22
-21
No files found.
README.md
View file @
882c4a60
...
...
@@ -16,34 +16,35 @@ e.g. the resulting GHC is `inplace/bin/ghc-stage2`.
Your first build
----------------
Beware, the build system is in the alpha development phase. Things are shaky and
often
Beware, the build system is in the alpha development phase. Things are shaky and
sometimes
break; there are numerous
[
known issues
][
issues
]
. Not afraid? Then put on the helmet and
follow these steps
:
run the following command from root of the GHC tree
:
*
If you have never built GHC before, start with the
[
preparation guide
][
ghc-preparation
]
.
```
hadrian/build.sh -j
```
*
Hadrian is written in Haskell and depends on the following
packages:
`ansi-terminal extra mtl quickcheck shake`
.
or on Windows:
*
Get the sources. It is important for the build system to be in the
`hadrian`
directory
of the GHC source tree:
```
hadrian/build.bat -j
```
```bash
git clone --recursive git://git.haskell.org/ghc.git
cd ghc
git clone git://github.com/snowleopard/hadrian
```
Here flag
`-j`
enables parallelism and is optional. We will further refer to the build script
simply as
`build`
. Note that Hadrian runs the
`boot`
and
`configure`
scripts automatically when
needed. Use
`--skip-configure`
to suppress this behaviour (see the overview of command line
flags below).
*
Build GHC using
`hadrian/build.sh`
or
`hadrian/build.bat`
(on Windows) instead
of
`make`
. You might want to enable parallelism with
`-j`
. We will further refer to the
build script simply as
`build`
. Note that Hadrian runs the
`boot`
and
`configure`
scripts automatically when needed. Use
`--skip-configure`
to suppress this behaviour
(see overview of command line flags below).
Notes:
*
If the default build script doesn't work, you might want to give a try to a more
specific one based on Cabal sandboxes (
`build.cabal.sh`
), Stack (
`build.stack.bat`
)
or the global package database (
`build.global-db.sh`
). Also
see
[
instructions for building GHC on Windows using Stack
][
windows-build
]
.
*
If the default build script doesn't work, you might want to give a try to another one, e.g. based
on Cabal sandboxes (
`build.cabal.*`
), Stack (
`build.stack.*`
) or the global package database
(
`build.global-db.*`
). Also see
[
instructions for building GHC on Windows using Stack
][
windows-build
]
.
*
Hadrian is written in Haskell and depends on the following packages:
`ansi-terminal extra mtl quickcheck shake`
.
*
If you have never built GHC before, start with the
[
preparation guide
][
ghc-preparation
]
.
Using the build system
----------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment