[llvm-dev] compiler-rt builtins on MSVC

David Majnemer via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 23 11:00:14 PDT 2015


On Wed, Sep 23, 2015 at 10:40 AM, Hao Wei via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi,
>
> compiler-rt builtins currently doesn't build on MSVC; it's ignored in
> the CMakeLists and if you force it to build MSVC explodes because it
> uses syntax not supported by MSVC.
>
> What is one supposed to use when building LLVM as a library for a
> compiler on MSVC in order to satisfy imports like __powidf2 etc? What
> does Clang do?
>

Clang targeting windows-msvc expects to link against the VC++ runtime.
It might be reasonable to extend compiler-rt to add support for these
compiler intrinsics.


>
> (Context: I'm trying to build Rust on MSVC without using MinGW at all.
> Currently what Rust does is build the rest of LLVM and the Rust's C
> bits itself with MSVC but use gcc to create libcompiler-rt for
> builtins.. which is horribly hacky, though it works quite well thanks
> to MinGW.)
>
> Thanks.
> _______________________________________________
> 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/20150923/6ed2db4a/attachment.html>


More information about the llvm-dev mailing list