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: ## for make:
### turn on ### turn on
``` ```
(...other steps that in compile guide...) #(...other steps that in compile guide...)
mkdir build mkdir build
cd build cd build
cmake -DUSE_CCACHE=ON .. cmake -DUSE_CCACHE=ON ..
make -j make -j
(...other steps that in compile guide...) #(...other steps that in compile guide...)
``` ```
### turn off ### turn off
``` ```
(...other steps that in compile guide...) #(...other steps that in compile guide...)
mkdir build mkdir build
cd build cd build
cmake -DUSE_CCACHE=OFF .. cmake -DUSE_CCACHE=OFF ..
make -j make -j
(...other steps that in compile guide...) #(...other steps that in compile guide...)
``` ```
### default behavior (off) ### default behavior (off)
``` ```
(...other steps that in compile guide...) #(...other steps that in compile guide...)
mkdir build mkdir build
cd build cd build
cmake .. cmake ..
make -j make -j
(...other steps that in compile guide...) #(...other steps that in compile guide...)
``` ```
## for ninja: ## for ninja:
### turn on ### turn on
``` ```
(...other steps that in compile guide...) #(...other steps that in compile guide...)
mkdir build mkdir build
cd build cd build
cmake -G Ninja -DUSE_CCACHE=ON .. cmake -G Ninja -DUSE_CCACHE=ON ..
ninja ninja
(...other steps that in compile guide...) #(...other steps that in compile guide...)
``` ```
### turn off ### turn off
``` ```
(...other steps that in compile guide...) #(...other steps that in compile guide...)
mkdir build mkdir build
cd build cd build
cmake -G Ninja -DUSE_CCACHE=OFF .. cmake -G Ninja -DUSE_CCACHE=OFF ..
ninja ninja
(...other steps that in compile guide...) #(...other steps that in compile guide...)
``` ```
### default behavior (off) ### default behavior (off)
``` ```
(...other steps that in compile guide...) #(...other steps that in compile guide...)
mkdir build mkdir build
cd build cd build
cmake -G Ninja .. cmake -G Ninja ..
ninja ninja
(...other steps that in compile guide...) #(...other steps that in compile guide...)
``` ```