Closed LeonMatthesKDAB closed 7 months ago
It turns out cc-rs falls back to RUSTC_WRAPPER to detect whether sccache is used.
RUSTC_WRAPPER
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
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