[Haskell-cafe] Cross compiling Haskell from Linux to Windows with GHCs LLVM backend?

Carter Schonwald carter.schonwald at gmail.com
Tue Jun 10 13:31:25 UTC 2014


You'll have much the same challenges as cross compiling using fllvm as
fasm. I'm not sure if cross compiling has been tested much aside from in
the Intel -> Arm case.

On Tuesday, June 10, 2014, Rob Stewart <robstewart57 at gmail.com> wrote:

> Hi,
>
> I compile my code with GHC on Linux, and don't have ready access to a
> Windows or a Mac operating system. Is it possible to use the GHC LLVM
> backend as a means to cross compile Haskell code to target multiple
> operating systems? I had envisaged it possible to generate the LLVM IR
> using GHCs -keep-llvm-files flag, and using LLVMs target triple flag
> to specify the CPU architecture and operating system of the users
> machine. I'd like to compile on Linux, to target WIndows and Mac
> machines.
>
> Strangely I cannot find blog posts or tutorials online for
> cross-compiling Haskell with GHC via LLVM.
>
> Is it possible? Thanks,
>
> --
> Rob
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org <javascript:;>
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140610/6d014419/attachment.html>


More information about the Haskell-Cafe mailing list