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: Enable cache if available + Prevent in-source builds #1507

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mozga-amd
Copy link
Contributor

  1. Enable cache if available, either to enable if exist or enable custom compiler mechanism. It also show mistake if cache mechanism is not found.
  2. The function to prevent in-source builds.

1. Enable cache if available:
2. The function to prevent in-source builds
@illsilin
Copy link
Collaborator

Two things:

  1. If you use our public containers to build CK, you can already take full advantage of sccache or ccache installed there and use it locally (and we are using it via redis server in CI).
  2. We frequently use different compiler versions which may have significant differences, so it's important to make sure that the compiler you are using for the build is the same that was used to generate the objects residing in the cache. Otherwise tests may start failing or passing at random and performance may undergo huge inexplicable fluctuations. We use a special wrapper script for that which is located in the /script/ folder. Please make sure to use some similar check.

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