Skip to content

Conversation

planetmarshall
Copy link
Contributor

If we aren't saving the cache we can get a small performance improvement by not writing new cache files during a build.

@hendrikmuhs
Copy link
Owner

hendrikmuhs commented Mar 24, 2025

Ccache documentation contains the following:

If true, ccache will attempt to use existing cached object files, but it will not to try to add anything new to the cache. If you are using this because your ccache directory is read-only, then you need to set temporary_dir as otherwise ccache will fail to create temporary files.

Can you check this?

Sorry, never mind. I misunderstood,it only applies if the whole directory is on a read-only filesystem or if the directory has read-only file permissions.

@hendrikmuhs hendrikmuhs merged commit 15fe4dd into hendrikmuhs:main Mar 24, 2025
53 checks passed
@planetmarshall planetmarshall deleted the readonly-if-no-save branch March 24, 2025 12:44
hendrikmuhs added a commit that referenced this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants