[cfe-dev] Precompiled headers
Nico Weber via cfe-dev
cfe-dev at lists.llvm.org
Fri Dec 11 11:35:44 PST 2015
On Fri, Dec 11, 2015 at 1:42 PM, Reid Kleckner via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> 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.
>
I actually have a pretty complete patch that seems to work modulo testing
and error handling (the most significant problem is that if your
precompiled header fails to build, the driver currently still goes ahead
and tries to use the (non-existent) gch file to produce the .obj file in
/Yc mode).
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151211/bcdabd43/attachment.html>
More information about the cfe-dev
mailing list