<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 11, 2015 at 10:26 AM, Richard Smith 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"><div class="HOEnZb"><div class="h5"><p dir="ltr"><span style="color:rgb(34,34,34)">-Xclang passes only the immediately following argument to cc1. You need</span><br></p></div></div>
<p dir="ltr">clang-cl -fms-compatibility-version=19 -Xclang -include-pch -Xclang a.h.gch a.cpp</p>
<p dir="ltr">Also, the -Xclang / -cc1 interface is not really supported and has no stability guarantees; do the cl.exe flags for PCH not work in clang-cl? (If not, please file a bug on that.)</p></blockquote><div>Nico was going to take a shot at making the /Y preprocessor flags work with clang-cl, but I don't think he got around to it. I think it's not as easy as adding more aliases, you have to add some driver logic. <br></div></div></div></div>