]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
doc: Add hint about using -fno-pch-timestamp for PCH with Clang
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 11 Nov 2022 20:03:14 +0000 (21:03 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 11 Nov 2022 20:03:37 +0000 (21:03 +0100)
doc/MANUAL.adoc

index 31651f50dcaefa23cd72e0fe3d6886e03d608755..98ca1f236836c9750750f8f595bce86bccaaf5b8 100644 (file)
@@ -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 <<config_sloppiness,*sloppiness*>> 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