[cfe-dev] Can we make libcxx headers more modular for faster compilation?

Yaron Keren yaron.keren at gmail.com
Thu Oct 3 00:01:10 PDT 2013


Jonathan,

It's true that using WIN32_LEAN_AND_MEAN will speed compilation, but
deleting the include <windows.h> will speed even more. It's not required in
libcxx. If the programmer needs it he can include it regardless of libcxx.

Yaron




2013/10/3 Jonathan Sauer <jonathan.sauer at gmx.de>

> Hello,
>
> > support.h includes windows.h on win32 platform.
> > Does libstdc++ also include windows.h. I think this single include may
> be enough to explain the difference.
>
> I just looked into libc++, and it seems to include windows.h without first
> defining
> WIN32_LEAN_AND_MEAN. From <http://support.microsoft.com/kb/166474>:
>
> | WIN32_LEAN_AND_MEAN: Windows Headers use this symbol to exclude
> rarely-used header files
>
> Maybe that's a way to speed things up a bit, at least on Windows.
>
>
> HTH,
> Jonathan
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131003/9059466e/attachment.html>


More information about the cfe-dev mailing list