forked from crossbeam-rs/crossbeam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Omit some arguments with paths from Rust hash calculation. Fixes cros…
…sbeam-rs#207 Some rustc arguments like --out-dir, -L, and --extern contain absolute paths which make building the same crate (from crates.io) in different projects unable to get cache hits despite being otherwise the same. This patch omits those arguments from the hash calculation which makes sccache much more useful for local development. For additional safety we add the cwd to the hash key, since that winds up in the rlib and otherwise this patch could result in some compiles returning invalid results from cache.
- Loading branch information
Showing
1 changed file
with
46 additions
and
17 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