File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,33 @@ LD_LIBRARY_PATH=/usr/local/lib pytest
3838
3939That's it! You can now proceed to the testing section.
4040
41+ ### Speeding up local builds (sccache + Ninja)
42+
43+ If you do frequent local rebuilds, sccache can significantly speed up C/C++ rebuilds.
44+
45+ ``` bash
46+ brew install sccache ninja
47+ ```
48+
49+ Then run:
50+
51+ ``` bash
52+ CMAKE_GENERATOR=Ninja \
53+ CMAKE_C_COMPILER=clang \
54+ CMAKE_CXX_COMPILER=clang++ \
55+ CMAKE_C_COMPILER_LAUNCHER=sccache \
56+ CMAKE_CXX_COMPILER_LAUNCHER=sccache \
57+ CMAKE_BUILD_PARALLEL_LEVEL=8 \
58+ SKBUILD_PARALLEL_LEVEL=8 \
59+ pip install -e .
60+ ```
61+
62+ Check cache stats with:
63+
64+ ``` bash
65+ sccache --show-stats
66+ ```
67+
4168## Testing
4269
4370We are using pytest for testing. You can run the tests by executing
You can’t perform that action at this time.
0 commit comments