<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 9, 2015 at 6:18 PM, Russell Wallace <span dir="ltr"><<a href="mailto:russell.wallace@gmail.com" target="_blank">russell.wallace@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Jul 10, 2015 at 2:00 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">This seems more relevant to cfe-dev.<br></div></blockquote><div><br></div></span><div>Okay. </div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span><div><br></div></span><div>You seem to be struggling with the need to name the binary 'cl.exe'. Last time I checked, we installed clang-cl.exe under that name in a specialized director specifically so you can use build systems relying on that name.</div></div></div></blockquote><div><br></div></span><div><div>Right, but:</div><div><br></div><div>1. The existence of a binary named cl.exe isn't enough; depending on the circumstances, the build system may look specifically in the visual studio directory. Of course, you could do the rename/copy by hand, but it's better to have it automated, particularly since in practice there is a need to switch back and forth.</div></div></div></div></div></blockquote><div><br></div><div>For MSBuild, you can pass along /p:PlatformToolset=LLVM-vs2013 (or edit the project file for the same effect) to bypass this. I know Python's build is based on VS projects, so I would've expected this to work there. I wouldn't know about Ruby or other builds, and I imagine swapping the binary is useful for particularly inflexible systems.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>2. Python at least needs to have it switchable specifically for 32-bit or 64-bit builds.</div><div><br></div><div>3. wic also supplies the option -Wno-invalid-token-paste which is necessary for compatibility with the Microsoft preprocessor. I intend adding other options as needed.</div></div></div></div></div></blockquote><div><br></div><div>Was the issue here in user code or a system header? If the invalid token paste came from a system header, we shouldn't have errored. If it's in user code, it's up to them to decide if they want to suppress the issue by adding the flag themselves or fix it for conformance.</div><div><br></div><div>Different users have different needs, so it's not clear where the default level of conformance diagnostics vs. compatibility should be. I guess we should probably downgrade this to a -Wmicrosoft warning or something when MS compatibility is on.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>4. Hopefully can also substitute calls to the llvm linke when that's ready for prime time.</div></div></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div></div>