[libcxx-dev] libcxx to llvm ir

Duncan Exon Smith via libcxx-dev libcxx-dev at lists.llvm.org
Thu Mar 28 10:43:20 PDT 2019


Clang is the right tool for this.  I don't know the command-line options for `clang-cl`, but on `clang` invocations you would do this by using "-S -emit-llvm" instead of "-c".

+Reid, I assume there is an equivalent?

> On 2019 Mar  27, at 18:34, Emmanuel Thivierge via libcxx-dev <libcxx-dev at lists.llvm.org> wrote:
> 
> Hi all,
> 
> I am playing with llvm orc jit and I would like to be able to use the STL. So I am trying to find a way to compile libcxx to llvm ir.
> Anybody had any success and have some pointers on how to do it? So far I tried to figure out a way to configure cmake to make it happen. 
> I am on windows and so I fear that clang-cl might not be able to do this. In any case, I would appreciate any pointers.
> 
> 
> Thanks a lot
> Emmanuel
> _______________________________________________
> libcxx-dev mailing list
> libcxx-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev



More information about the libcxx-dev mailing list