Skip to content

Commit

Permalink
Merge pull request #7 from za-songguo/patch-2
Browse files Browse the repository at this point in the history
Update build-cache.md
  • Loading branch information
OlingCat authored May 7, 2024
2 parents 9fa2c68 + 09e7ca1 commit 86615c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guide/build-cache.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 构建 缓存

Cargo 在单个工作区,共享其中所有包的构建工件。今天,Cargo 不会在不同的工作区共享构建结果,但使用第三方工具可以实现类似的结果,[sccache]
Cargo 在单个工作区,共享其中所有包的构建结果。今天,Cargo 不会在不同的工作区共享构建结果,但使用第三方工具可以实现类似的结果,[sccache]

装置`sccache``cargo install sccache`安装它,并在调用 Cargo 之前,设置`RUSTC_WRAPPER`环境变量成`sccache`。如果你使用 bash,更好是添加`export RUSTC_WRAPPER=sccache``.bashrc`文件。有关更多详细信息,请参阅 sccache 文档.
`cargo install sccache`安装 sccache,并在调用 Cargo 之前,设置`RUSTC_WRAPPER`环境变量成`sccache`。如果你使用 bash,更好的方法是`export RUSTC_WRAPPER=sccache``.bashrc`文件。有关更多详细信息,请参阅 sccache 文档.

[sccache]: https://github.com/mozilla/sccache

0 comments on commit 86615c9

Please sign in to comment.