mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 19:47:43 +00:00
Enable ccache Depend Mode
A miss used to cost a preprocessor pass for the hash and then the real compile. With the depend mode ccache hashes the include list the compiler reports, so a miss costs only the compile. Ninja already asks every compiler here for that list.
This commit is contained in:
3
.github/workflows/build_orca.yml
vendored
3
.github/workflows/build_orca.yml
vendored
@@ -121,6 +121,9 @@ jobs:
|
|||||||
# use __DATE__ or __TIME__, and the precompiled header, whose
|
# use __DATE__ or __TIME__, and the precompiled header, whose
|
||||||
# macros ccache cannot see.
|
# macros ccache cannot see.
|
||||||
echo "CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_mtime,include_file_ctime" >> "$GITHUB_ENV"
|
echo "CCACHE_SLOPPINESS=pch_defines,time_macros,include_file_mtime,include_file_ctime" >> "$GITHUB_ENV"
|
||||||
|
# Hash the includes the compiler reports instead of preprocessing
|
||||||
|
# every miss before compiling it.
|
||||||
|
echo "CCACHE_DEPEND=1" >> "$GITHUB_ENV"
|
||||||
# The restored directory carries the previous run's counters.
|
# The restored directory carries the previous run's counters.
|
||||||
ccache -z
|
ccache -z
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user