Updated Notes About ccache (markdown)

sommermorgentraum 2024-10-17 14:44:43 +08:00
parent a9e7881cef
commit 7ebb351650

@ -13,57 +13,57 @@ If you are aware of these issue and you are sure you are able to realized them,
## for make:
### turn on
```
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
mkdir build
cd build
cmake -DUSE_CCACHE=ON ..
make -j
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
```
### turn off
```
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
mkdir build
cd build
cmake -DUSE_CCACHE=OFF ..
make -j
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
```
### default behavior (off)
```
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
mkdir build
cd build
cmake ..
make -j
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
```
## for ninja:
### turn on
```
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
mkdir build
cd build
cmake -G Ninja -DUSE_CCACHE=ON ..
ninja
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
```
### turn off
```
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
mkdir build
cd build
cmake -G Ninja -DUSE_CCACHE=OFF ..
ninja
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
```
### default behavior (off)
```
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
mkdir build
cd build
cmake -G Ninja ..
ninja
(...other steps that in compile guide...)
#(...other steps that in compile guide...)
```