Skip to content

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 :-)

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