Skip to content

tuxmake does not respect default ccache CCACHE_DIR #225

@bhcopeland

Description

@bhcopeland

In GitLab by @krzkoz on Jun 17, 2025, 12:11 GMT+1:

By default ccache v4.10.2 has ccache in .cache/ccache (at least on Ubuntu 24.10, not Windows - important further).

tuxmake ignores it completely and sets up a new one in ~/.ccache, overriding existing default one. It seems it assumes CCACHE_DIR has a fixed value, but the man page:

On non-Windows systems, the default is $HOME/.ccache if such a directory exists, otherwise $XDG_CACHE_HOME/ccache if XDG_CACHE_HOME is set, otherwise $HOME/Library/Caches/ccache (macOS) or $HOME/.config/ccache (other systems).

tuxmake 1.29.3

$ cat ~/.config/tuxmake/default 
--wrapper=ccache
--build=out/
--verbose
$ printenv | grep CCACHE
USE_CCACHE=1

Migrated from GitLab: https://gitlab.com/Linaro/tuxmake/-/issues/225

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions