On Wed, Dec 12, 2018 at 7:07 AM Darin Adler <darin@apple.com> wrote:
On Dec 9, 2018, at 10:34 PM, Fujii Hironori <fujii.hironori@gmail.com> wrote:
MSVC has /FI option.
/FI (Name Forced Include File) | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/build/reference/fi-name-forced-include-...
Unfortunately, it seems that MSVC's precompiled header needs to be
included explicitly.
/Yu (Use Precompiled Header File) | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/build/reference/yu-use-precompiled-head...
So this seems like the main potential obstacle. We can force an include of a prefix header, or precompile a header, but not both, with the Microsoft compiler.
It was just my misunderstanding. WebKit Windows ports are already using both /Yu and /FI. https://trac.webkit.org/browser/webkit/trunk/Source/cmake/WebKitMacros.cmake... It seems that WebKit can stop including config.h in all source fils.