Skip to content

Use 'MB' in max-size default instead of 'M' - #382

Merged
hendrikmuhs merged 1 commit into
hendrikmuhs:mainfrom
Andrej730:use_mb_suffix
Oct 7, 2025
Merged

hendrikmuhs merged 1 commit into
hendrikmuhs:mainfrom
Andrej730:use_mb_suffix

Conversation

@Andrej730

Copy link
Copy Markdown
Contributor

"M" shouldn't cause any errors, but just to be consistent with officially documented supported suffixes in https://ccache.dev/manual/4.12.html

image

@hendrikmuhs

Copy link
Copy Markdown
Owner

The same doc has an example using a single letter:

Set maximum cache size to 10 GB:

max_size = 10G

In code it only checks whether the 2nd letter is i.

Anyway, I like the more explicit version. Thanks for the change.

"M" shouldn't cause any errors, but just to be consistent with officially documented supported suffixes in https://ccache.dev/manual/4.12.html
@hendrikmuhs
hendrikmuhs merged commit 30ae350 into hendrikmuhs:main Oct 7, 2025
61 checks passed
@Andrej730
Andrej730 deleted the use_mb_suffix branch October 7, 2025 06:27
@Andrej730

Copy link
Copy Markdown
Contributor Author

The same doc has an example using a single letter:

Nice catch! And it's not using single letters anymore - ccache/ccache#1640 😅

@hendrikmuhs

Copy link
Copy Markdown
Owner

nice!

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