From ded0defc3fa12d11d722dba78f9dba66256a3b16 Mon Sep 17 00:00:00 2001 From: Nicolas Schneider Date: Sun, 27 Jan 2019 16:52:21 +0100 Subject: auto generate msvc pch source file if none is provided by the user --- docs/markdown/Precompiled-headers.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/markdown/Precompiled-headers.md b/docs/markdown/Precompiled-headers.md index 3f7d4b4..8dfb438 100644 --- a/docs/markdown/Precompiled-headers.md +++ b/docs/markdown/Precompiled-headers.md @@ -75,8 +75,11 @@ executable('multilang', sources : srclist, Using precompiled headers with MSVC -- +Since Meson version 0.50.0, precompiled headers with MSVC work just like +with GCC. Meson will automatically create the matching pch implementation +file for you. -MSVC is a bit trickier, because in addition to the header file, it +Before version 0.50.0, in addition to the header file, Meson also requires a corresponding source file. If your header is called `foo_pch.h`, the corresponding source file is usually called `foo_pch.cpp` and it resides in the same `pch` subdirectory as the -- cgit v1.1