<div dir="ltr"><div><div>In the past I have succesfully compiled with Windows build of GHC simply by using Wine. It might work for you as well. It worked surprisingly well and without a single problem at the time. I was using GHC 6.8.2 back then.<br>

<br></div>--<br></div>Krzysztof<br><div><div><div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 10:59 AM, Rob Stewart <span dir="ltr"><<a href="mailto:robstewart57@gmail.com" target="_blank">robstewart57@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I compile my code with GHC on Linux, and don't have ready access to a<br>
Windows or a Mac operating system. Is it possible to use the GHC LLVM<br>
backend as a means to cross compile Haskell code to target multiple<br>
operating systems? I had envisaged it possible to generate the LLVM IR<br>
using GHCs -keep-llvm-files flag, and using LLVMs target triple flag<br>
to specify the CPU architecture and operating system of the users<br>
machine. I'd like to compile on Linux, to target WIndows and Mac<br>
machines.<br>
<br>
Strangely I cannot find blog posts or tutorials online for<br>
cross-compiling Haskell with GHC via LLVM.<br>
<br>
Is it possible? Thanks,<br>
<br>
--<br>
Rob<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>