Add support for using sccache on Unix (#76889)
authorAndy Gocke <angocke@microsoft.com>
Thu, 13 Oct 2022 05:08:18 +0000 (22:08 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 05:08:18 +0000 (22:08 -0700)
commitfc0e636ea3af9b297441a9c9270298937f748300
tree1f260bf57f37fba1e571d7a82dfca03022500293
parent546fad95f1474673832b8bbf459b78cd8a2598da
Add support for using sccache on Unix (#76889)

* Add support for using sccache on Unix

sccache (https://github.com/mozilla/sccache) is a compiler
caching tool that supports local or remote storage. It's
useful in /runtime for caching the results of the C++ components of
the build.

This PR adds support for dotnet/runtime by recognizing a =true
environment variable, which then instructs CMake to look for a the
sccache binary in the PATH.
src/coreclr/build-runtime.sh