mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-02 03:01:04 +02:00
docs(compilation): add sccache section
This commit is contained in:
parent
bfec31254f
commit
1b54276bea
1 changed files with 17 additions and 0 deletions
|
@ -103,6 +103,23 @@ then add the following:
|
||||||
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Caching
|
||||||
|
|
||||||
|
To speed up subsequent rebuilds, Mozilla's [sccache](https://github.com/mozilla/sccache) tool can be used.
|
||||||
|
This provides a cache of Rust modules which can be re-used when compiling any other crate.
|
||||||
|
|
||||||
|
Install the package for your distro, create/modify the `.cargo/config.toml` file inside the project dir,
|
||||||
|
then add the following:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[build]
|
||||||
|
rustc-wrapper = "/usr/bin/sccache"
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To get the most of out `sccache`,
|
||||||
|
> you can add this to `$HOME/.cargo/config.toml` to enable caching for all Cargo builds.
|
||||||
|
|
||||||
## Codegen Backend
|
## Codegen Backend
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue