Increase ccache max size for clang tidy builds

This commit is contained in:
Mikhail f. Shiryaev 2022-07-27 14:24:14 +02:00
parent 061e61919a
commit c6fd8364a4
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -236,7 +236,11 @@ def parse_env_variables(
result.append("CCACHE_BASEDIR=/build")
result.append("CCACHE_NOHASHDIR=true")
result.append("CCACHE_COMPILERCHECK=content")
result.append("CCACHE_MAXSIZE=15G")
cache_maxsize = "15G"
if clang_tidy:
# 15G is not enough for tidy build
cache_maxsize = "25G"
result.append(f"CCACHE_MAXSIZE={cache_maxsize}")
# result.append("CCACHE_UMASK=777")
if distcc_hosts: