[commit: ghc] master: Tidy up cross-compiling (109a1e5)
Simon Marlow
marlowsd at gmail.com
Thu Jan 17 15:08:39 CET 2013
On 17/01/13 14:00, Simon Peyton-Jones wrote:
> 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
Oh yes, I plan to fix the wiki. It needs more than just an update for
this change though... the CrossCompilation page is really a design
document, not a user guide, we need some proper documentation.
Cheers,
Simon
> 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