diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 6389063535..4d0882401e 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst @@ -392,8 +392,15 @@ file for details about how to enable this mechanism in your configuration file, how to disable it for specific recipes, and how to share ``ccache`` files between builds. -However, using the class can lead to unexpected side-effects. Thus, using -this class is not recommended. +Recipes (including :ref:`ref-classes-native` ones) can make use of the host's +``ccache`` binary (via :term:`HOSTTOOLS`) if the following configuration +statements are provided in a :term:`configuration file`:: + + ASSUME_PROVIDED += "ccache-native" + HOSTTOOLS += "ccache" + +Using the :ref:`ref-classes-ccache` class can lead to unexpected side-effects. +Using this class is not recommended. .. _ref-classes-chrpath: