Skip to content

Unwanted double-caching when ccache is also installed #2519

Closed

Description

@avikivity

If ccache is installed and has /usr/lib64/ccache in $PATH, then sccache gcc ... will actually call /usr/lib64/ccache/gcc, which is in fact ccache, resulting in double-caching.

It would be easier for users migrating from ccache (or having some projects using ccache and some projects using sccache) if sccache automatically set the CCACHE_DISABLE environment variable before invoking the compiler.

Activity

  1. Felixoid commented on Dec 19, 2025

    @Felixoid
    Contributor

    Isn't it possible in this case to just chain sccache ccache?

  2. avikivity commented on Dec 20, 2025

    @avikivity
    ContributorAuthor

    The goal is to avoid double-caching, which is usually unwanted.

  3. changed the title [-]Double-caching when ccache is also installed[/-] [+]Unwanted double-caching when ccache is also installed[/+] on Dec 20, 2025
  4. added 3 commits that reference this issue on Dec 20, 2025
    546c701
    ec91704
    608d5c6
  5. added 2 commits that reference this issue on Jan 10, 2026
    af93738
    4bb5579
  6. added 3 commits that reference this issue on Jan 22, 2026
    2a7f25c
    ecce16b
    ce9f95b
  7. added 3 commits that reference this issue on Feb 1, 2026
    d8913d5
    6681201
    83fc260
  8. added a commit that references this issue on Feb 9, 2026
    9aac93e
  9. added a commit that references this issue on Feb 21, 2026
    3bd100d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions