[commit: ghc] master: Tidy up cross-compiling (109a1e5)
Simon Peyton-Jones
simonpj at microsoft.com
Thu Jan 17 14:58:52 CET 2013
Would it be worth transferring that comment into the building guide (a cross-compiling page perhaps). The distinction is subtle and the information is useful
There is http://hackage.haskell.org/trac/ghc/wiki/CrossCompilation
but I'm not sure it has this info
Simon
| -----Original Message-----
| From: ghc-commits-bounces at haskell.org [mailto:ghc-commits-
| bounces at haskell.org] On Behalf Of Simon Marlow
| Sent: 17 January 2013 12:57
| To: ghc-commits at haskell.org
| Subject: [commit: ghc] master: Tidy up cross-compiling (109a1e5)
|
| Repository : ssh://darcs.haskell.org//srv/darcs/ghc
|
| On branch : master
|
| http://hackage.haskell.org/trac/ghc/changeset/109a1e53287f50103e8a5b5922
| 75940b6e3dbb53
|
| >---------------------------------------------------------------
|
| commit 109a1e53287f50103e8a5b592275940b6e3dbb53
| Author: Simon Marlow <marlowsd at gmail.com>
| Date: Thu Jan 17 11:52:15 2013 +0000
|
| Tidy up cross-compiling
|
| We have two cases:
| 1. building a cross-compiler
| 2. compiling GHC to run on a foreign platform
|
| These two are done with almost the same setup: (1) is the stage 1
| compiler, and (2) is the stage 2 compiler, when CrossCompiling=YES.
|
| The only difference between (1) and (2) is that you if you set up
| the
| build for (1), then it stops before stage 2 and you can 'make
| install'
| to install stage 1.
|
| Unfortunately, (2) didn't work, and the build system code needed
| some
| tidying up.
|
| Change to the way the build is set up:
|
| Before
| ------
|
| To build a cross-compiler:
| ./configure --target=<..>
|
| To compile a foreign GHC:
| ./configure --host=<..> --target=<..>
|
| Now
| ---
|
| To build a cross-compiler:
| ./configure --target=<..>
| And set "Stage1Only=YES" in mk/build.mk
|
| To compile a foreign GHC:
| ./configure --target=<..>
|
| aclocal.m4 | 28 ++++++++----
| compiler/ghc.mk | 99 ++++++++++++++++++++----------------
| ------
| configure.ac | 35 ++++-----------
| ghc.mk | 10 ++--
| ghc/ghc.mk | 2 +-
| libraries/primitive | 1 -
| libraries/vector | 1 -
| mk/config.mk.in | 27 +++++++-----
| rules/build-package-data.mk | 7 +++-
| settings.in | 1 +
| utils/ghc-pkg/ghc.mk | 4 +-
| 11 files changed, 107 insertions(+), 108 deletions(-)
|
|
| Diff suppressed because of size. To see it, use:
|
| git show 109a1e53287f50103e8a5b592275940b6e3dbb53
|
| _______________________________________________
| ghc-commits mailing list
| ghc-commits at haskell.org
| http://www.haskell.org/mailman/listinfo/ghc-commits
More information about the ghc-devs
mailing list