#4163: Make cross-compilation work
---------------------------------+------------------------------------------
Reporter: simonmar | Owner: simonmar
Type: task | Status: patch
Priority: high | Milestone: 7.2.1
Component: Build System | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty: Difficult (2-5 days)
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by simonmar):
A few quick comments:
Igloo's patch isn't right - it changes `*_HOST_ARCH` to `*_TARGET_ARCH` in
the RTS, and we eventually agreed that is the wrong thing (IIRC).
We have some conflict resolutions in there (merger patches), would be good
to get rid of those. Basically I think Igloo's patches need to be rebased
on HEAD.
You have some whitespace changes in there, which makes it hard to review
the patch, could you separate them out please?
In general, I have concerns that passing DynFlags everywhere will be too
painful, and I wonder whether we should put the target architecture in a
static flag instead (i.e. something in `main/StaticFlags.hs`). The
downsides are minimal - you wouldn't be able to fire up two GHC sessions
using the GHC API and generate code for two different platforms, but I
don't expect anyone would want to do that.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4163#comment:22>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs