From: Joel Rosdahl Date: Fri, 11 Nov 2022 20:03:14 +0000 (+0100) Subject: doc: Add hint about using -fno-pch-timestamp for PCH with Clang X-Git-Tag: v4.7.4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=682f58a0e1d45d691970944117d893bdb523fc3e;p=thirdparty%2Fccache.git doc: Add hint about using -fno-pch-timestamp for PCH with Clang --- diff --git a/doc/MANUAL.adoc b/doc/MANUAL.adoc index 31651f50d..98ca1f236 100644 --- a/doc/MANUAL.adoc +++ b/doc/MANUAL.adoc @@ -1710,8 +1710,8 @@ directories: == Precompiled headers -Ccache has support for GCC's precompiled headers. However, you have to do some -things to make it work properly: +Ccache has support for precompiled headers with GCC and Clang. However, you have +to do some things to make it work properly: * You must set <> to *pch_defines,time_macros*. The reason is that ccache can't tell whether `+__TIME__+`, `+__DATE__+` or @@ -1734,6 +1734,8 @@ things to make it work properly: compiling. -- + +* If you use Clang, you must compile with `-fno-pch-timestamp`. + If you don't do this, either the non-precompiled version of the header file will be used (if available) or ccache will fall back to running the real compiler and increase the statistics counter "`Preprocessing failed`" (if the non-precompiled