diff options
| author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-08 10:02:34 +0100 |
|---|---|---|
| committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-08 10:58:41 +0100 |
| commit | ff84d052850b637b03bbb98cf05202e44886257d (patch) | |
| tree | 0d7dea696d0c5200763ae30f7edb313f5c170cc4 /compiler | |
| parent | 54895c90440cb81f18657537b91f2aa35bd54173 (diff) | |
| download | haskell-ff84d052850b637b03bbb98cf05202e44886257d.tar.gz | |
cross-build 'unlit' and 'hp2ps' for stage2 install
In navive build case it does not matter much if we build
'unlit' and 'hp2ps' tools with ghc-stage0 or ghc-stage1:
both GHCs are native compilers and both tools are written
in C (have no haskell code).
But in cross-case the difference is substantial:
In Stag1Only=YES case we need to install native tools built
by ghc-stage0/${host}-cc.
In Stag1Only=NO case we need to install cross-built tools
built by ghc-stage1/${target}-cc.
Before this change GHC did not have a rule to build cross-built
'unlit' and 'hp2ps'.
The change adds cross-built 'unlit' and 'hp2ps' as 'dist-install'
targets.
'inplace/lib/bin/unlit.bin' target is unchanged and still contains
native binary.
As a result this change allows cross-building and packaging whole
GHC for target platform!
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'compiler')
0 files changed, 0 insertions, 0 deletions
