Skip to content

Add section on enabling ccache when developing/troubleshooting builds #40

@ermo

Description

@ermo

Every once in a while, a packager will run into having to repeatedly attempt to build something while they patch it up.

In this scenario, the ccache and sccache compiler cache tools can be very helpful.

Our just build recipe is setup so it is as simple as executing:

BOULDER_ARGS="--compiler-cache" just build
# or, if you want everything to inherit it in your current shell session
export BOULDER_ARGS="--compiler-cache"
just build

when you want to build with the compiler cache tools turned on.

... yes, learning this the hard way with qt6-webengine was ... "fun".

Thanks to @ReillyBrogan for reminding me that we support this. Long after I needed it of course. As foretold by the prophecy.

Says Reilly:

Note that sccache breaks if you run multiple builds that use cargo at the same time

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