[cfe-dev] Multiple versions of VS

Nico Weber via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 27 13:52:34 PST 2017


Yes, that should work. -fmsc-version controls which Visual Studio version
clang-cl tries to be compatible with. -fmsc-version=1900 selects 2015, 1800
selects 2013, 1300 selects 2010, etc. clang-cl tries to pick a good default
based on which version's vcvarsall you ran.

On Mon, Feb 27, 2017 at 4:48 PM, Ammarguellat, Zahira via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Or in other words can I compile with clang (built with VS2015/VS2017 soon
> for instance) using VS2013/VS2015 headers?
>
> -----Original Message-----
> From: Ammarguellat, Zahira
> Sent: Monday, February 27, 2017 2:11 PM
> To: 'Hans Wennborg' <hans at chromium.org>; 'rnk at google.com' <rnk at google.com>
> Cc: cfe-dev at lists.llvm.org
> Subject: RE: Multiple versions of VS
>
> Hans, Reid,
>
> Sorry I was a bit unclear in my message. What I meant to say is when I
> generate a clang binary, can I compile with this binary, code, using older
> versions of VS?
> Some features need use of runtime libraries (size operator delete,
> thread_local)?
>
> Thanks.
> -----Original Message-----
> From: hwennborg at google.com [mailto:hwennborg at google.com] On Behalf Of
> Hans Wennborg
> Sent: Monday, February 27, 2017 1:06 PM
> To: Ammarguellat, Zahira <zahira.ammarguellat at intel.com>
> Cc: cfe-dev at lists.llvm.org
> Subject: Re: Multiple versions of VS
>
> On Mon, Feb 27, 2017 at 10:03 AM, Hans Wennborg <hans at chromium.org> wrote:
> > On Fri, Feb 24, 2017 at 7:28 AM, Ammarguellat, Zahira via cfe-commits
> > <cfe-commits at lists.llvm.org> wrote:
> >> Is there any plan from the community to have clang support multiple
> >> versions of VS?
> >
> > What kind of support to you mean?
> >
> > Do you mean the Visual Studio integration, or Clang's ability to find
> > the standard library, linker, etc. of a VS installation?
>
> Oh, I see in http://bugs.llvm.org/show_bug.cgi?id=32059, you mean support
> for compiling clang itself?
>
> There are no plans to support compiling Clang with earlier versions of VS,
> as it doesn't support all the C++ features that Clang uses.
> _______________________________________________
> 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/20170227/b8f5fee4/attachment.html>


More information about the cfe-dev mailing list