<div dir="auto">Even if I just issue one file with /Yc and none with /Yu, it still fails. Looks like it possibly generates two processes, one to generate the pch and the other to compile and link. A temp file is generated but no final pch; an error is emitted "Unable to read pch file foo.pch".</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 7 Apr 2019, 14:19 Alexandre Ganea via Phabricator, <<a href="mailto:reviews@reviews.llvm.org" target="_blank" rel="noreferrer">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">aganea added a comment.<br>
<br>
That is strange. As you can’t mix /Yc and /Yu on the command line, MSBuild should issue two different calls to clang-cl, one with /Yc and one /Yu /MP. Can you check with ProcMon that commands are issued in the right order?<br>
<br>
<br>
Repository:<br>
  rC Clang<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D52193/new/" rel="noreferrer noreferrer noreferrer" target="_blank">https://reviews.llvm.org/D52193/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D52193" rel="noreferrer noreferrer noreferrer" target="_blank">https://reviews.llvm.org/D52193</a><br>
<br>
<br>
<br>
</blockquote></div>