KDAB / cxx-qt

Safe interop between Rust and Qt
https://kdab.github.io/cxx-qt/book/
1.02k stars 67 forks source link

Set RUSTC_WRAPPER to sccache to speed up building #820

Closed LeonMatthesKDAB closed 7 months ago

LeonMatthesKDAB commented 7 months ago

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 https://github.com/corrosion-rs/corrosion/pull/474