[commit: ghc] master: Tidy up cross-compiling (109a1e5)

Stephen Paul Weber singpolyma at singpolyma.net
Fri Jan 18 16:25:16 CET 2013


Somebody claiming to be Simon Marlow wrote:
>Ok, new wiki page is here:
>http://hackage.haskell.org/trac/ghc/wiki/Building/CrossCompiling

Is:

--with-gcc=<gcc> --with-ld=<ld> --with-nm=<nm> --with-objdump=<objdump>

Necessary?  I guess if the given tools are not on PATH with the normal 
cross-compiling prefix?

>Please edit away.  In particular I haven't investigated cross-compiling 
>with LLVM

That's a bit broken right now (since GHC doesn't pass through the target to 
LLVM), but otherwise just involves having an LLVM that supports the target 
on PATH.

Also:

cabal --with-ghc=<cross-ghc> --with-ld=<ld> ...

What does this do?  So far I've been careful to use a seperate ~/.cabal-blah 
directory to not entangle my two cabals.  Will it handle things nicely?  Do 
you need to tell it where to find ghc-pkg, or will --with-ghc work for that?  
Maybe I can switch to just a script/alias instead of a whole config file :)

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130118/90244c51/attachment.pgp>


More information about the ghc-devs mailing list