[cfe-dev] VS2017: LLVM Compiler Toolchain Plugin

Zachary Turner via cfe-dev cfe-dev at lists.llvm.org
Fri Sep 28 15:30:24 PDT 2018


I hadn’t seen that blog post, thanks!

I don’t have a particularly strong opinion on the stdout option, but
several other project members do. Can you elaborate on why you think it
should be on by default (and separately, why it should not be possible to
disable)? The thinking on our side is that this is a task better handled by
the build system, and presently most build systems today just end up
filtering this out anyway.

My current idea for how to implement this is to have clang detect the
presence of a magical undocumented environment variable, and have the
MSBuild integration just set this variable.


On Fri, Sep 28, 2018 at 11:33 AM Stephen Kelly via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> The suggestion here is to make than an off-by-default option in Clang-CL:
>
>   https://bugs.llvm.org/show_bug.cgi?id=31957
>
> I think it should be on by default (and not optional), but maybe you are
> interested in it.
>
> Thanks from me for the VS infrastructure. I wrote about it here:
>
>
>
> https://blogs.msdn.microsoft.com/vcblog/2018/09/18/exploring-clang-tooling-part-0-building-your-code-with-clang/
>
> and will have follow-up posts out soon made possible by it!
>
> Thanks,
>
> Stephen.
>
> On 28/09/18 16:06, Zachary Turner via cfe-dev wrote:
> > Nice!  Thanks for your early feedback too.  The one remaining thing
> > which I’d like to add is the ability to print the input file name to
> > stdout.  Currently when you build a large project you see no output and
> > it looks like the build is hung, potentially for several minutes.  It
> > would be nice to match what msvc does and generate build output
> >
> > On Fri, Sep 28, 2018 at 4:13 AM degski via cfe-dev
> > <cfe-dev at lists.llvm.org
> > <mailto:cfe-dev at lists.llvm.org>> wrote:
> >
> >     After not doing any C++dev for some time, I, today (yes, I'm slow),
> >     updated the "LLVM Compiler Toolchain" plugin for MSVC. And, I cannot
> >     say anything else then, "Just what the doctor ordered, perfect" This
> >     plugin makes Clang/LLVM a first-class-citizen. The support for
> >     lld-link is just the best, and using the -flto=thin option blows
> >     MSVC straight out of the water for many software projects (many more
> >     to thank there).
> >
> >     My Thanks (and Cheers) go out to *Zach Turner* for providing this
> >     linking pin in the process of getting Clang/LLVM working properly
> >     (and in a non-conflicting way in conjunction with MSVC) on the
> >     Windows platform from within the Visual Studio 2017 IDE. Thanks,
> >     mate, we owe you one!
> >
> >
> >     degski
> >     --
> >     /*/*“*/If something cannot go on forever, it will stop" - Herbert
> >     Stein*/
> >     _______________________________________________
> >     cfe-dev mailing list
> >     cfe-dev at lists.llvm.org
> >     <mailto:cfe-dev at lists.llvm.org>
> >     http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> >
> >
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> >
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180928/ac887592/attachment.html>


More information about the cfe-dev mailing list