Skip to content

Unable to use ccache anymore #1869

@jbleonesio

Description

@jbleonesio

Since migrating from BuildStream 1.6.8 to 2.0.1 files created during a "bst build" step are not kept, even using a workspace.

As a result builds using ccache with a CCACHE_DIR contained inside the workspace directory are silently slowed down because they keep caching compilation objects without being able to take advantage of them in a later compilation.

I created a fully reproducible example of this behavior difference between bst 1.6.8 and bst 2.0.1 here : https://github.com/jbleonesio/bst_build_in_workspace_tests

flatpak-builder has a --ccache option flag dedicated to this purpose. Is there any way to achieve a similar goal with BuildStream and it is documented ?

For information, the CI/CD pipeline duration of an open-source project that I maintain went from ~8min to ~20min for that reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions