From 216ee2860f3996eb09ade9463b05640d14fd3234 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:42:13 +1000 Subject: [PATCH] Add doc for using sccache/ccache etc --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d4c2fe381..5dc4084c0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,6 +76,10 @@ //! trailing spaces. This compiler must understand the `-c` flag. For //! certain `TARGET`s, it also is assumed to know about other flags (most //! common is `-fPIC`). +//! ccache, distcc, sccache, icecc, cachepot and buildcache are supported, +//! for sccache, simply set `CC` to `sccache cc`. +//! For other custom `CC` wrapper, just set `CC_KNOWN_WRAPPER_CUSTOM` +//! to the custom wrapper used in `CC`. //! * `AR` - the `ar` (archiver) executable to use to build the static library. //! * `CRATE_CC_NO_DEFAULTS` - the default compiler flags may cause conflicts in //! some cross compiling scenarios. Setting this variable