<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 10:40 AM, Hao Wei via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
compiler-rt builtins currently doesn't build on MSVC; it's ignored in<br>
the CMakeLists and if you force it to build MSVC explodes because it<br>
uses syntax not supported by MSVC.<br>
<br>
What is one supposed to use when building LLVM as a library for a<br>
compiler on MSVC in order to satisfy imports like __powidf2 etc? What<br>
does Clang do?<br></blockquote><div><br></div><div>Clang targeting windows-msvc expects to link against the VC++ runtime.</div><div>It might be reasonable to extend compiler-rt to add support for these compiler intrinsics.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
(Context: I'm trying to build Rust on MSVC without using MinGW at all.<br>
Currently what Rust does is build the rest of LLVM and the Rust's C<br>
bits itself with MSVC but use gcc to create libcompiler-rt for<br>
builtins.. which is horribly hacky, though it works quite well thanks<br>
to MinGW.)<br>
<br>
Thanks.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div></div>