[llvm-dev] Cross Compiling LLVM for Windows on macOS?

Zachary Turner via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 29 16:17:36 PDT 2018


You will need to find a way to get a Windows SDK and CRT onto your Mac
box.  Probably the "proper" way to do this is install them both on a
physical Windows machine (or VM), and then manually copy them over to your
mac partition.

After you have this, take a look at llvm/cmake/platforms/WinMsvc.cmake.

The instructions are a bit confusing, but should be complete.  If there's a
specific step in that file that you're confused about, let me know which
one.

On Wed, Aug 29, 2018 at 3:03 AM Zhang via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

> Hi:
> For reasons I need to build LLVM Windows on my macOS host if possible.
> I've learnt that lld current supports COFF linking and the online guide
> provided clang commands for doing so. I'd like to know the correct way to
> do this since the guide I've found seems a little bit confusing
>
>
> Zhang
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180829/41206e1f/attachment.html>


More information about the llvm-dev mailing list