Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Support using ccache if enabled #54

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Conversation

aperezdc
Copy link
Member

Setting CMAKE_<language>_COMPILER_LAUNCHER in the environment prior to the CMake invocation it will arrange the generated Make/Ninja build files to properly use ccache for compiler invocations.

Setting CMAKE_<language>_COMPILER_LAUNCHER in the environment prior to
the CMake invocation it will arrange the generated Make/Ninja build
files to properly use ccache for compiler invocations.
@aperezdc aperezdc self-assigned this Jan 27, 2025
@aperezdc aperezdc requested review from ltilve and jaragunde January 27, 2025 15:03
@aperezdc
Copy link
Member Author

This makes invocations of the following command go down to ~8min after at least one build has completed to fill up the cache:

./cerbero-uninstalled -c local.cbc -c config/cross-android-arm64.cbc buildone wpewebkit -j 22

The contents of local.cbc are:

use_ccache = True

@aperezdc
Copy link
Member Author

@aperezdc aperezdc requested a review from neodesys January 27, 2025 16:51
@aperezdc aperezdc merged commit 199c4b4 into main Jan 28, 2025
3 checks passed
@aperezdc aperezdc deleted the aperezdc/cmake-ccache branch January 28, 2025 08:54
@aperezdc
Copy link
Member Author

I have submitted this patch to upstream Cerbero as well: https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1697

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