-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect and use sccache by introspecting RUSTC_WRAPPER (#475)
* Detect and use `sccache` via `RUSTC_WRAPPER` If no other C/C++ caching tool is found by inspecting `CC` and `CXX`, `RUSTC_WRAPPER` is tested to see if an output-caching wrapper for `rustc` is in use. If that is the case and it is a wrapper known to also support C/C++ caching, use it. (Also correct/clarify a misnamed variable that caused me some confusion looking over the code.) * Support RUSTC_WRAPPER on Windows and with absolute paths When checking for possible `RUSTC_WRAPPER`s that we can use to cache C/C++ output, allow for filename extensions (e.g. `sccache.exe`) and absolute paths (e.g. `/usr/local/bin/sccache`). Closes #473
- Loading branch information
Showing
2 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters