<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 27, 2017 at 4:48 PM, Ammarguellat, Zahira via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Or in other words can I compile with clang (built with VS2015/VS2017 soon for instance) using VS2013/VS2015 headers?<br>
<span class="im HOEnZb"><br>
-----Original Message-----<br>
From: Ammarguellat, Zahira<br>
Sent: Monday, February 27, 2017 2:11 PM<br>
To: 'Hans Wennborg' <<a href="mailto:hans@chromium.org">hans@chromium.org</a>>; '<a href="mailto:rnk@google.com">rnk@google.com</a>' <<a href="mailto:rnk@google.com">rnk@google.com</a>><br>
Cc: <a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
Subject: RE: Multiple versions of VS<br>
<br>
Hans, Reid,<br>
<br>
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?<br>
Some features need use of runtime libraries (size operator delete, thread_local)?<br>
<br>
Thanks.<br>
-----Original Message-----<br>
From: <a href="mailto:hwennborg@google.com">hwennborg@google.com</a> [mailto:<a href="mailto:hwennborg@google.com">hwennborg@google.com</a>] On Behalf Of Hans Wennborg<br>
Sent: Monday, February 27, 2017 1:06 PM<br>
To: Ammarguellat, Zahira <<a href="mailto:zahira.ammarguellat@intel.com">zahira.ammarguellat@intel.com</a><wbr>><br>
Cc: <a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
Subject: Re: Multiple versions of VS<br>
<br>
</span><div class="HOEnZb"><div class="h5">On Mon, Feb 27, 2017 at 10:03 AM, Hans Wennborg <<a href="mailto:hans@chromium.org">hans@chromium.org</a>> wrote:<br>
> On Fri, Feb 24, 2017 at 7:28 AM, Ammarguellat, Zahira via cfe-commits<br>
> <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br>
>> Is there any plan from the community to have clang support multiple<br>
>> versions of VS?<br>
><br>
> What kind of support to you mean?<br>
><br>
> Do you mean the Visual Studio integration, or Clang's ability to find<br>
> the standard library, linker, etc. of a VS installation?<br>
<br>
Oh, I see in <a href="http://bugs.llvm.org/show_bug.cgi?id=32059" rel="noreferrer" target="_blank">http://bugs.llvm.org/show_bug.<wbr>cgi?id=32059</a>, you mean support for compiling clang itself?<br>
<br>
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.<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>