You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,19 +278,19 @@ This is most useful when using sccache for Rust compilation, as rustc supports u
278
278
279
279
---
280
280
281
-
Normalizing Paths with `SCCACHE_BASEDIR`
281
+
Normalizing Paths with `SCCACHE_BASEDIRS`
282
282
-----------------------------------------
283
283
284
-
By default, sccache requires absolute paths to match for cache hits. To enable cache sharing across different build directories, you can set `SCCACHE_BASEDIR` to strip a base directory from paths before hashing:
284
+
By default, sccache requires absolute paths to match for cache hits. To enable cache sharing across different build directories, you can set `SCCACHE_BASEDIRS` to strip a base directory from paths before hashing:
285
285
286
286
```bash
287
-
exportSCCACHE_BASEDIR=/home/user/project
287
+
exportSCCACHE_BASEDIRS=/home/user/project
288
288
```
289
289
290
290
You can also specify multiple base directories by separating them with `|` (pipe character). When multiple directories are provided, the longest matching prefix is used:
* By default, absolute paths to files must match to get a cache hit. To work around this, use `SCCACHE_BASEDIR` (see above) to normalize paths before hashing.
321
+
* By default, absolute paths to files must match to get a cache hit. To work around this, use `SCCACHE_BASEDIRS` (see above) to normalize paths before hashing.
@@ -146,7 +146,7 @@ Note that some env variables may need sccache server restart to take effect.
146
146
147
147
*`SCCACHE_ALLOW_CORE_DUMPS` to enable core dumps by the server
148
148
*`SCCACHE_CONF` configuration file path
149
-
*`SCCACHE_BASEDIR` base directory (or directories) to strip from paths for cache key computation. This is similar to ccache's `CCACHE_BASEDIR` and enables cache hits across different absolute paths when compiling the same source code. Multiple directories can be separated by `|` (pipe character). When multiple directories are specified, the longest matching prefix is used. Environment variable takes precedence over file configuration. Only absolute paths are supported; relative paths will be ignored with a warning.
149
+
*`SCCACHE_BASEDIRS` base directory (or directories) to strip from paths for cache key computation. This is similar to ccache's `CCACHE_BASEDIR` and enables cache hits across different absolute paths when compiling the same source code. Multiple directories can be separated by `|` (pipe character). When multiple directories are specified, the longest matching prefix is used. Environment variable takes precedence over file configuration. Only absolute paths are supported; relative paths will be ignored with a warning.
150
150
*`SCCACHE_CACHED_CONF`
151
151
*`SCCACHE_IDLE_TIMEOUT` how long the local daemon process waits for more client requests before exiting, in seconds. Set to `0` to run sccache permanently
152
152
*`SCCACHE_STARTUP_NOTIFY` specify a path to a socket which will be used for server completion notification
0 commit comments