From: Stephen Seo Date: Mon, 11 Nov 2024 06:55:47 +0000 (+0900) Subject: Specify "CCACHE_NOHASHDIR" when using ccache X-Git-Url: https://git.seodisparate.com/stephenseo/css/base.css?a=commitdiff_plain;h=ed1b49d28ac1deb5eda21de22415904c1d11c198;p=AnotherAURHelper Specify "CCACHE_NOHASHDIR" when using ccache AUR packages tend to be built with the package's name and version as part of the current-working-directory during building. Specifying CCACHE_NOHASHDIR=1 will cause ccache to ignore the current-working-directory when hashing for ccache-cached objects. This should hopefully fix issues where new package versions tend to cause cache-misses on build. --- diff --git a/update.py b/update.py index b34a8ff..df681f9 100755 --- a/update.py +++ b/update.py @@ -1444,6 +1444,7 @@ def update_pkg_list( command_list.insert(2, "-d") command_list.insert(3, f'{pkg_state[pkg]["ccache_dir"]}:/ccache') post_command_list.insert(1, "CCACHE_DIR=/ccache") + post_command_list.insert(2, "CCACHE_NOHASHDIR=1") elif "sccache_dir" in pkg_state[pkg]: command_list.insert(2, "-d") command_list.insert(3, f'{pkg_state[pkg]["sccache_dir"]}:/sccache')