<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Nov 12, 2016 at 1:52 AM, Jan von Löwenstein <span dir="ltr"><<a href="mailto:jan.loewenstein@gmail.com" target="_blank">jan.loewenstein@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_7378896201106266714gmail_msg">I have a Mac OS X workstation and want to compile a cli for Linux (and potentially Windows) in addition to OS X. <div dir="auto" class="m_7378896201106266714gmail_msg">I could not find anything but <a href="https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation" target="_blank">https://ghc.haskell.org/<wbr>trac/ghc/wiki/CrossCompilation</a><wbr>. </div><div dir="auto" class="m_7378896201106266714gmail_msg">This has an explanation how I can build a cross compiling GHC for a specific combination of build and target system/architecture. </div><div dir="auto" class="m_7378896201106266714gmail_msg"><span style="font-size:13px">Stack has an open issue regarding cross compilation.</span></div><div dir="auto" class="m_7378896201106266714gmail_msg"><br></div><div dir="auto" class="m_7378896201106266714gmail_msg">Is that really all there is out there? </div></div></blockquote></div><br>Cross-compilation pretty much only exists for porting ghc itself at this point. There are some hacks involving llvm that are used for ARM cross-compiling.<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>