summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2015-07-30 10:36:45 +0200
committerBen Gamari <ben@smart-cactus.org>2015-07-30 17:05:35 +0200
commit9f7cdfee3e9f9ca6fbfa27d3b2dc2d86ac4ee226 (patch)
tree5189b7894f149e01da746dfb935ff965e22b60f0 /README.md
parent5a8a8a64e793d2efbe9ea7d445cc8efe75d11f80 (diff)
downloadhaskell-9f7cdfee3e9f9ca6fbfa27d3b2dc2d86ac4ee226.tar.gz
Make configure error out on missing ghc-tarballs on Windows
Currently checking out the source on windows requires two git checkouts. One for the GHC sources and one for the GHC-tarballs. This patch will make configure issue an error if compiling under windows and the GHC-tarballs folder is missing. On failure the user is told which command they need to run to get the tarballs or if they want configure to handle it for them configure provide the `--enable-tarballs-autodownload` flag. Test Plan: 1. make sure ghc-tarballs folder is not present 2. run ./configure which should fail giving an error that tarballs is missing and how to get it 3. run ./configure --enable-tarballs-autodownload and the tarballs should be downloaded and configure finishes 4. rerun the command in 3, no new download should be done. 5. run configure without --enable-tarballs-autodownload, configure should finish correctly. Reviewers: bgamari, austin, thomie Reviewed By: thomie Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1108 GHC Trac Issues: #10705
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 5ad1adb6d0..025140c772 100644
--- a/README.md
+++ b/README.md
@@ -28,11 +28,6 @@ There are two ways to get a source tree:
$ git clone --recursive git://git.haskell.org/ghc.git
- On Windows, you need an extra repository containing some build tools:
-
- $ cd ghc/
- $ git clone git://git.haskell.org/ghc-tarballs.git
-
Note: cloning GHC from Github requires a special setup. See [Getting a GHC
repository from Github] [7].
@@ -66,6 +61,11 @@ dblatex.
$ make # can also say 'make -jX' for X number of jobs
$ make install
+ On Windows, you need an extra repository containing some build tools.
+ These can be downloaded for you by configure. This only needs to be done once by running:
+
+ $ ./configure --enable-tarballs-autodownload
+
(NB: **Do you have multiple cores? Be sure to tell that to `make`!** This can
save you hours of build time depending on your system configuration, and is
almost always a win regardless of how many cores you have. As a simple rule,