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

Set RUSTC_WRAPPER to sccache to speed up building #820

Merged

Conversation

LeonMatthesKDAB
Copy link
Collaborator

It turns out cc-rs falls back to RUSTC_WRAPPER to detect whether sccache is used.

So we can use this to speed up cxx-qt-lib and our other build scripts in CI.

However: This requires a small patch to cc-rs, as the fallback weirdly is broken if the full compiler path is provided.

This however, is a fairly easy alternative to corrosion-rs/corrosion#474

@LeonMatthesKDAB LeonMatthesKDAB force-pushed the set-rustc-wrapper-from-cmake branch from 71a3f24 to 4a46924 Compare January 24, 2024 09:41
Copy link
Collaborator

@ahayzen-kdab ahayzen-kdab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :-)

@LeonMatthesKDAB LeonMatthesKDAB enabled auto-merge (rebase) January 24, 2024 09:44
@LeonMatthesKDAB LeonMatthesKDAB merged commit 92baeff into KDAB:main Jan 24, 2024
10 checks passed
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