Skip to content

Commit b4adaac

Browse files
committed
Fix slowing down compilation caused by ccache
Use sloppiness mode for ccache to force ccache to ignore code file modification times, preventing ccache to use preprocess hit mode to slow down the compiling process.
1 parent cd2867f commit b4adaac

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/fastbuild_6.6.50.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ jobs:
536536
echo "LLD版本: $LLD_VERSION"
537537
pahole_version=$(pahole --version 2>/dev/null | head -n1); [ -z "$pahole_version" ] && echo "pahole版本:未安装" || echo "pahole版本:$pahole_version"
538538
539+
export CCACHE_SLOPPINESS="include_file_mtime"
539540
export CCACHE_COMPILERCHECK="%compiler% -dumpmachine; %compiler% -dumpversion"
540541
export CCACHE_NOHASHDIR="true"
541542
export CCACHE_HARDLINK="true"

.github/workflows/fastbuild_6.6.66.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ jobs:
534534
echo "LLD版本: $LLD_VERSION"
535535
pahole_version=$(pahole --version 2>/dev/null | head -n1); [ -z "$pahole_version" ] && echo "pahole版本:未安装" || echo "pahole版本:$pahole_version"
536536
537+
export CCACHE_SLOPPINESS="include_file_mtime"
537538
export CCACHE_COMPILERCHECK="%compiler% -dumpmachine; %compiler% -dumpversion"
538539
export CCACHE_NOHASHDIR="true"
539540
export CCACHE_HARDLINK="true"

0 commit comments

Comments
 (0)