[cfe-dev] Precompiled headers

Reid Kleckner via cfe-dev cfe-dev at lists.llvm.org
Fri Dec 11 10:42:09 PST 2015


On Fri, Dec 11, 2015 at 10:26 AM, Richard Smith via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> -Xclang passes only the immediately following argument to cc1. You need
>
> clang-cl -fms-compatibility-version=19 -Xclang -include-pch -Xclang
> a.h.gch a.cpp
>
> 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.)
>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151211/f4231e65/attachment.html>


More information about the cfe-dev mailing list