Skip to content

Commit 02c0952

Browse files
authored
Add doc for using sccache/ccache etc (#1502)
1 parent 20c06cf commit 02c0952

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@
7676
//! trailing spaces. This compiler must understand the `-c` flag. For
7777
//! certain `TARGET`s, it also is assumed to know about other flags (most
7878
//! common is `-fPIC`).
79+
//! ccache, distcc, sccache, icecc, cachepot and buildcache are supported,
80+
//! for sccache, simply set `CC` to `sccache cc`.
81+
//! For other custom `CC` wrapper, just set `CC_KNOWN_WRAPPER_CUSTOM`
82+
//! to the custom wrapper used in `CC`.
7983
//! * `AR` - the `ar` (archiver) executable to use to build the static library.
8084
//! * `CRATE_CC_NO_DEFAULTS` - the default compiler flags may cause conflicts in
8185
//! some cross compiling scenarios. Setting this variable

0 commit comments

Comments
 (0)