Skip to content

set cache to readonly if skipping save - #301

Merged
hendrikmuhs merged 1 commit into
hendrikmuhs:mainfrom
planetmarshall:readonly-if-no-save
Mar 24, 2025
Merged

hendrikmuhs merged 1 commit into
hendrikmuhs:mainfrom
planetmarshall:readonly-if-no-save

Conversation

@planetmarshall

Copy link
Copy Markdown
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

hendrikmuhs commented Mar 24, 2025 •

Copy link
Copy Markdown
Owner

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
@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