[commit: ghc] master: Tidy up cross-compiling (109a1e5)
Simon Marlow
marlowsd at gmail.com
Thu Jan 17 13:57:17 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/109a1e53287f50103e8a5b592275940b6e3dbb53
>---------------------------------------------------------------
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
More information about the ghc-commits
mailing list