Repository navigation
Avoid double-caching when ccache is installed in PATH - #2524
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2524 +/- ##
==========================================
+ Coverage 72.62% 72.80% +0.17%
==========================================
Files 68 68
Lines 36822 37117 +295
==========================================
+ Hits 26743 27023 +280
- Misses 10079 10094 +15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ec91704 to
608d5c6
Compare
|
update: fix rustfmt error |
|
@sylvestre please review |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
1fe7bb9 to
4bb5579
Compare
|
@sylvestre can I help in any way to push this along? |
| use std::env; | ||
| use std::path::Path; | ||
|
|
||
| const CCACHE_DIRS: &[&str] = &["/usr/lib/ccache", "/usr/lib64/ccache"]; |
There was a problem hiding this comment.
The CCACHE_DIRS list only contains Linux paths. Consider adding macOS Homebrew paths (/usr/local/opt/ccache/libexec, /opt/homebrew/opt/ccache/libexec) or adding a comment explaining why they're omitted
There was a problem hiding this comment.
also, it would be nice to be able to configure things somewhere
There was a problem hiding this comment.
We can generalize it to any path that contains a component ccache.
There was a problem hiding this comment.
About configuration, is it still needed if we just filter out directories with ccache components?
| /// This prevents double-caching when ccache is installed and has | ||
| /// /usr/lib/ccache or /usr/lib64/ccache in PATH, since those directories | ||
| /// contain wrapper scripts that would call ccache. | ||
| pub fn filter_ccache_from_path(env_vars: Vec<(OsString, OsString)>) -> Vec<(OsString, OsString)> { |
There was a problem hiding this comment.
Function allocates a new Vec even when no ccache dirs are present in PATH. Consider short-circuiting to return the input Vec unchanged when filtering is not needed
| } = self; | ||
| // Filter out ccache directories from PATH to avoid double-caching | ||
| // when ccache is also installed on the system. | ||
| let env_vars = filter_ccache_from_path(env_vars.to_vec()); |
There was a problem hiding this comment.
Filter is only applied to SingleCompileCommand but NvccCompileCommand (in nvcc.rs) also implements CompileCommandImpl and may need the same treatment it is intentional ?
There was a problem hiding this comment.
Not intentional, I'll take a look.
|
sorry for the latency |
4bb5579 to
2a7f25c
Compare
|
v2:
|
2a7f25c to
ecce16b
Compare
|
v3:
|
ecce16b to
ce9f95b
Compare
|
v4:
|
|
I believe the performance regression report is spurious, the code doesn't touch the macro finder code. |
|
So I'm not the maintainer here and this is merely a suggestion. I'm a bit uncomfortable with the brittleness of this approach to recognizing ccache. An additional, somewhat - perhaps less - brittle heuristic that could be added on POSIX platforms is to recognize when gcc, g++, clang, clang++ [...] is a symlink to a binary called "ccache". Assuming that ccache works like icecream and sccache (which btw supports symlinks compiler -> sccache now). |
I believe it's unnecessary - it's unlikely people will have directories in path named ccache that host the real compilers instead of ccache masquerades. I'm happy to make that change if the maintainers think it is necessary though. |
I don't mean ANDing the two conditions, I mean ORing. The false positive rate of a compiler binary linking to a binary called ccache, which is actually not ccache, should be negligible. |
To clarify: IF the directory contains a path component ccache, OR if the looked-up compiler is a symlink to something named ccache, THEN skip this compiler executable? Makes sense. |
That's what I meant, yes |
|
(Background: I MAY have had a distributed compiler, which I compiled myself, installed in [obscure]/local/bin at some point, but I have never renamed the distributed compiler binary to something else than its usual name - which would probably break something because it avoids calling itself by checking its binary name) On third thought, what the hell was I thinking, if it's not called gcc or g++ etc, it won't be found as a compiler at all, so you'd need to resolve the symlink to ccache, which is... doable but where this maybe gets a bit "too much". |
d8913d5 to
6681201
Compare
|
update:
|
6681201 to
83fc260
Compare
|
update:
|
|
@sylvestre the gentlest of pings |
On Linux, ccache is typically installed in $PATH as /usr/lib64/ccache/g++ or similar. If we keep it there, all compilations will be cached by both ccache and sccache. While the user could easily disable ccache with CCACHE_DISABLE, it's reasonable to assume many will forget and will have their disk space doubly consumed by both caches. Better to recognize this and disable ccache under sccache. This patch does this resolving the input compiler name to an absolute path, with these rules: - if a directory in PATH contains a component `ccache`, it is skipped - if the compiler exists in a directory in PATH, but is a symlink to a target `ccache`, it is skipped These two tests will catch most ccache masquerade directories. Fixes mozilla#2519
83fc260 to
9aac93e
Compare
|
@sylvestre how can we move this forward? |
|
Sorry |
….0) (#40) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mozilla/sccache](https://github.com/mozilla/sccache) | minor | `0.14.0` → `0.15.0` | --- ### Release Notes <details> <summary>mozilla/sccache (mozilla/sccache)</summary> ### [`v0.15.0`](https://github.com/mozilla/sccache/releases/tag/v0.15.0) [Compare Source](mozilla/sccache@v0.14.0...v0.15.0) ##### sccache 0.15.0 ##### Summary sccache 0.15.0 brings several notable improvements: - **Multi-tier caching**: New support for layered caches with fallback and automatic backfilling between tiers ([#​2581](mozilla/sccache#2581)). - **C++20 modules**: Initial (partial) support for compiling C++20 modules ([#​2516](mozilla/sccache#2516)). - **Expanded MSVC support**: New flags handled including `d1nodatetime`, `await:strict` ([#​2617](mozilla/sccache#2617)), `Y-`, `YI`, `Zf` ([#​2663](mozilla/sccache#2663)), and the default `.pdb` extension for `/Fd` ([#​2621](mozilla/sccache#2621)). - **New platforms**: loongarch64 support ([#​2669](mozilla/sccache#2669)) and `crt-static` for riscv64 musl targets ([#​2683](mozilla/sccache#2683)). - **ccache interop**: Avoid double-caching when ccache is also installed in `PATH` ([#​2524](mozilla/sccache#2524)). - **Cargo integration**: `CARGO_ENCODED_RUSTFLAGS` is now excluded from the env var hash to prevent spurious cache misses ([#​2651](mozilla/sccache#2651)), and dep-info handling correctly skips directories ([#​2676](mozilla/sccache#2676)). - **Distribution**: cargo-binstall metadata for prebuilt binary installation ([#​2647](mozilla/sccache#2647)). - **Reliability fixes**: GCS initialization ([#​2637](mozilla/sccache#2637)), Windows `Win32_Security` feature ([#​2627](mozilla/sccache#2627)), and retries for dist docker image builds ([#​2677](mozilla/sccache#2677)). This release also includes a large round of clippy-driven cleanups and several CI fixes. Welcome to 7 new contributors! ##### Features - Avoid double-caching when ccache is installed in PATH by [@​avikivity](https://github.com/avikivity) in [#​2524](mozilla/sccache#2524) - partial c++20 module support by [@​TroyKomodo](https://github.com/TroyKomodo) in [#​2516](mozilla/sccache#2516) - Add support for `d1nodatetime` & `await:strict` MSVC flags by [@​AJIOB](https://github.com/AJIOB) in [#​2617](mozilla/sccache#2617) - msvc: Append the default .pdb extension for the /Fd argument by [@​ikolomiko](https://github.com/ikolomiko) in [#​2621](mozilla/sccache#2621) - msvc: add support for Y-, YI, Zf flags by [@​AJIOB](https://github.com/AJIOB) in [#​2663](mozilla/sccache#2663) - Implement multiple tiers caching with fallback and backfilling by [@​Felixoid](https://github.com/Felixoid) in [#​2581](mozilla/sccache#2581) - feat: Add loongarch64 support by [@​wojiushixiaobai](https://github.com/wojiushixiaobai) in [#​2669](mozilla/sccache#2669) - Add cargo-binstall metadata for prebuilt binary installation by [@​sylvestre](https://github.com/sylvestre) in [#​2647](mozilla/sccache#2647) ##### Fixes - fix: add Win32\_Security feature to windows-sys dependency by [@​JulienCote](https://github.com/JulienCote) in [#​2627](mozilla/sccache#2627) - Fix GCS initialization by [@​msuozzo](https://github.com/msuozzo) in [#​2637](mozilla/sccache#2637) - fix: exclude `CARGO_ENCODED_RUSTFLAGS` from env var hash by [@​weihanglo](https://github.com/weihanglo) in [#​2651](mozilla/sccache#2651) - fix: handle directories in dep-info source file hashing by [@​mmastrac](https://github.com/mmastrac) in [#​2676](mozilla/sccache#2676) ##### CI - Revert "actions: add security audit workflow" by [@​sylvestre](https://github.com/sylvestre) in [#​2603](mozilla/sccache#2603) - ci: fix artifact\_failure action when target dir does not exist by [@​sylvestre](https://github.com/sylvestre) in [#​2635](mozilla/sccache#2635) - ci: set crt-static for riscv64 musl targets by [@​wojiushixiaobai](https://github.com/wojiushixiaobai) in [#​2683](mozilla/sccache#2683) - Add retry for dists docker image build by [@​Felixoid](https://github.com/Felixoid) in [#​2677](mozilla/sccache#2677) ##### Clippy & cleanup - clippy: fix cloned\_ref\_to\_slice\_refs lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2602](mozilla/sccache#2602) - clippy: fix semicolon\_if\_nothing\_returned lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2601](mozilla/sccache#2601) - clippy: fix cloned\_instead\_of\_copied lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2605](mozilla/sccache#2605) - clippy: fix explicit\_into\_iter\_loop lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2616](mozilla/sccache#2616) - clippy: fix unnecessary\_semicolon lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2615](mozilla/sccache#2615) - clippy: fix manual\_string\_new lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2609](mozilla/sccache#2609) - clippy: fix ptr\_as\_ptr lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2611](mozilla/sccache#2611) - clippy: fix ref\_option lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2608](mozilla/sccache#2608) - clippy: fix from\_iter\_instead\_of\_collect lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2614](mozilla/sccache#2614) - Move PreprocessorCacheModeConfig to src/config.rs by [@​xis19](https://github.com/xis19) in [#​2604](mozilla/sccache#2604) - Remove benchmark normalize\_win\_path\_utf8 by [@​sylvestre](https://github.com/sylvestre) in [#​2634](mozilla/sccache#2634) - Move cmake-modules to integration tests by [@​Felixoid](https://github.com/Felixoid) in [#​2649](mozilla/sccache#2649) ##### Docs - docs(Rust.md): Add caveats from README by [@​TheJanzap](https://github.com/TheJanzap) in [#​2684](mozilla/sccache#2684) ##### Dependencies - chore: switch thirtyfour\_sync to thirtyfour by [@​tottoto](https://github.com/tottoto) in [#​2613](mozilla/sccache#2613) - build(deps): bump actions/upload-artifact from 4 to 7 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2632](mozilla/sccache#2632) - build(deps): bump actions/download-artifact from 5 to 8 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2631](mozilla/sccache#2631) - chore(deps): update rust crate quinn-proto to v0.11.14 by [@​xtqqczze](https://github.com/xtqqczze) in [#​2645](mozilla/sccache#2645) ##### New Contributors - [@​ikolomiko](https://github.com/ikolomiko) made their first contribution in [#​2621](mozilla/sccache#2621) - [@​JulienCote](https://github.com/JulienCote) made their first contribution in [#​2627](mozilla/sccache#2627) - [@​msuozzo](https://github.com/msuozzo) made their first contribution in [#​2637](mozilla/sccache#2637) - [@​weihanglo](https://github.com/weihanglo) made their first contribution in [#​2651](mozilla/sccache#2651) - [@​wojiushixiaobai](https://github.com/wojiushixiaobai) made their first contribution in [#​2669](mozilla/sccache#2669) - [@​TheJanzap](https://github.com/TheJanzap) made their first contribution in [#​2684](mozilla/sccache#2684) - [@​mmastrac](https://github.com/mmastrac) made their first contribution in [#​2676](mozilla/sccache#2676) **Full Changelog**: <mozilla/sccache@v0.14.0...v0.15.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9naXRodWItcmVsZWFzZSIsInR5cGUvbWlub3IiXX0=--> Reviewed-on: https://git.erwanleboucher.dev/eleboucher/towonel/pulls/40
….0) (#40) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mozilla/sccache](https://github.com/mozilla/sccache) | minor | `0.14.0` → `0.15.0` | --- ### Release Notes <details> <summary>mozilla/sccache (mozilla/sccache)</summary> ### [`v0.15.0`](https://github.com/mozilla/sccache/releases/tag/v0.15.0) [Compare Source](mozilla/sccache@v0.14.0...v0.15.0) ##### sccache 0.15.0 ##### Summary sccache 0.15.0 brings several notable improvements: - **Multi-tier caching**: New support for layered caches with fallback and automatic backfilling between tiers ([#​2581](mozilla/sccache#2581)). - **C++20 modules**: Initial (partial) support for compiling C++20 modules ([#​2516](mozilla/sccache#2516)). - **Expanded MSVC support**: New flags handled including `d1nodatetime`, `await:strict` ([#​2617](mozilla/sccache#2617)), `Y-`, `YI`, `Zf` ([#​2663](mozilla/sccache#2663)), and the default `.pdb` extension for `/Fd` ([#​2621](mozilla/sccache#2621)). - **New platforms**: loongarch64 support ([#​2669](mozilla/sccache#2669)) and `crt-static` for riscv64 musl targets ([#​2683](mozilla/sccache#2683)). - **ccache interop**: Avoid double-caching when ccache is also installed in `PATH` ([#​2524](mozilla/sccache#2524)). - **Cargo integration**: `CARGO_ENCODED_RUSTFLAGS` is now excluded from the env var hash to prevent spurious cache misses ([#​2651](mozilla/sccache#2651)), and dep-info handling correctly skips directories ([#​2676](mozilla/sccache#2676)). - **Distribution**: cargo-binstall metadata for prebuilt binary installation ([#​2647](mozilla/sccache#2647)). - **Reliability fixes**: GCS initialization ([#​2637](mozilla/sccache#2637)), Windows `Win32_Security` feature ([#​2627](mozilla/sccache#2627)), and retries for dist docker image builds ([#​2677](mozilla/sccache#2677)). This release also includes a large round of clippy-driven cleanups and several CI fixes. Welcome to 7 new contributors! ##### Features - Avoid double-caching when ccache is installed in PATH by [@​avikivity](https://github.com/avikivity) in [#​2524](mozilla/sccache#2524) - partial c++20 module support by [@​TroyKomodo](https://github.com/TroyKomodo) in [#​2516](mozilla/sccache#2516) - Add support for `d1nodatetime` & `await:strict` MSVC flags by [@​AJIOB](https://github.com/AJIOB) in [#​2617](mozilla/sccache#2617) - msvc: Append the default .pdb extension for the /Fd argument by [@​ikolomiko](https://github.com/ikolomiko) in [#​2621](mozilla/sccache#2621) - msvc: add support for Y-, YI, Zf flags by [@​AJIOB](https://github.com/AJIOB) in [#​2663](mozilla/sccache#2663) - Implement multiple tiers caching with fallback and backfilling by [@​Felixoid](https://github.com/Felixoid) in [#​2581](mozilla/sccache#2581) - feat: Add loongarch64 support by [@​wojiushixiaobai](https://github.com/wojiushixiaobai) in [#​2669](mozilla/sccache#2669) - Add cargo-binstall metadata for prebuilt binary installation by [@​sylvestre](https://github.com/sylvestre) in [#​2647](mozilla/sccache#2647) ##### Fixes - fix: add Win32\_Security feature to windows-sys dependency by [@​JulienCote](https://github.com/JulienCote) in [#​2627](mozilla/sccache#2627) - Fix GCS initialization by [@​msuozzo](https://github.com/msuozzo) in [#​2637](mozilla/sccache#2637) - fix: exclude `CARGO_ENCODED_RUSTFLAGS` from env var hash by [@​weihanglo](https://github.com/weihanglo) in [#​2651](mozilla/sccache#2651) - fix: handle directories in dep-info source file hashing by [@​mmastrac](https://github.com/mmastrac) in [#​2676](mozilla/sccache#2676) ##### CI - Revert "actions: add security audit workflow" by [@​sylvestre](https://github.com/sylvestre) in [#​2603](mozilla/sccache#2603) - ci: fix artifact\_failure action when target dir does not exist by [@​sylvestre](https://github.com/sylvestre) in [#​2635](mozilla/sccache#2635) - ci: set crt-static for riscv64 musl targets by [@​wojiushixiaobai](https://github.com/wojiushixiaobai) in [#​2683](mozilla/sccache#2683) - Add retry for dists docker image build by [@​Felixoid](https://github.com/Felixoid) in [#​2677](mozilla/sccache#2677) ##### Clippy & cleanup - clippy: fix cloned\_ref\_to\_slice\_refs lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2602](mozilla/sccache#2602) - clippy: fix semicolon\_if\_nothing\_returned lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2601](mozilla/sccache#2601) - clippy: fix cloned\_instead\_of\_copied lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2605](mozilla/sccache#2605) - clippy: fix explicit\_into\_iter\_loop lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2616](mozilla/sccache#2616) - clippy: fix unnecessary\_semicolon lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2615](mozilla/sccache#2615) - clippy: fix manual\_string\_new lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2609](mozilla/sccache#2609) - clippy: fix ptr\_as\_ptr lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2611](mozilla/sccache#2611) - clippy: fix ref\_option lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2608](mozilla/sccache#2608) - clippy: fix from\_iter\_instead\_of\_collect lint by [@​xtqqczze](https://github.com/xtqqczze) in [#​2614](mozilla/sccache#2614) - Move PreprocessorCacheModeConfig to src/config.rs by [@​xis19](https://github.com/xis19) in [#​2604](mozilla/sccache#2604) - Remove benchmark normalize\_win\_path\_utf8 by [@​sylvestre](https://github.com/sylvestre) in [#​2634](mozilla/sccache#2634) - Move cmake-modules to integration tests by [@​Felixoid](https://github.com/Felixoid) in [#​2649](mozilla/sccache#2649) ##### Docs - docs(Rust.md): Add caveats from README by [@​TheJanzap](https://github.com/TheJanzap) in [#​2684](mozilla/sccache#2684) ##### Dependencies - chore: switch thirtyfour\_sync to thirtyfour by [@​tottoto](https://github.com/tottoto) in [#​2613](mozilla/sccache#2613) - build(deps): bump actions/upload-artifact from 4 to 7 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2632](mozilla/sccache#2632) - build(deps): bump actions/download-artifact from 5 to 8 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2631](mozilla/sccache#2631) - chore(deps): update rust crate quinn-proto to v0.11.14 by [@​xtqqczze](https://github.com/xtqqczze) in [#​2645](mozilla/sccache#2645) ##### New Contributors - [@​ikolomiko](https://github.com/ikolomiko) made their first contribution in [#​2621](mozilla/sccache#2621) - [@​JulienCote](https://github.com/JulienCote) made their first contribution in [#​2627](mozilla/sccache#2627) - [@​msuozzo](https://github.com/msuozzo) made their first contribution in [#​2637](mozilla/sccache#2637) - [@​weihanglo](https://github.com/weihanglo) made their first contribution in [#​2651](mozilla/sccache#2651) - [@​wojiushixiaobai](https://github.com/wojiushixiaobai) made their first contribution in [#​2669](mozilla/sccache#2669) - [@​TheJanzap](https://github.com/TheJanzap) made their first contribution in [#​2684](mozilla/sccache#2684) - [@​mmastrac](https://github.com/mmastrac) made their first contribution in [#​2676](mozilla/sccache#2676) **Full Changelog**: <mozilla/sccache@v0.14.0...v0.15.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9naXRodWItcmVsZWFzZSIsInR5cGUvbWlub3IiXX0=--> Reviewed-on: https://git.erwanleboucher.dev/eleboucher/towonel/pulls/40
Is there really a case when checking what the symlink resolves to wouldn't be enough ? I can't think of any such cases |
Following up from mozilla#2524 add the ccache path that Solus uses (`/usr/lib64/ccache/bin`) and the one that AerynOS uses (`/usr/lib/ccache/bin`). Signed-off-by: Reilly Brogan <[email protected]>
Following up from mozilla#2524 add the ccache path that Solus uses (`/usr/lib64/ccache/bin`) and the one that AerynOS uses (`/usr/lib/ccache/bin`). Signed-off-by: Reilly Brogan <[email protected]>
Following up from mozilla#2524 add the ccache path that Solus uses (`/usr/lib64/ccache/bin`) and the one that AerynOS uses (`/usr/lib/ccache/bin`). Signed-off-by: Reilly Brogan <[email protected]>
Following up from mozilla#2524 add the ccache path that Solus uses (`/usr/lib64/ccache/bin`) and the one that AerynOS uses (`/usr/lib/ccache/bin`). Signed-off-by: Reilly Brogan <[email protected]>
On Linux, ccache is typically installed in $PATH as /usr/lib64/ccache/g++
or similar. If we keep it there, all compilations will be cached by both
ccache and sccache.
While the user could easily disable ccache with CCACHE_DISABLE, it's
reasonable to assume many will forget and will have their disk space
doubly consumed by both caches. Better to recognize this and disable
ccache under sccache.
This patch does this resolving the input compiler name to an absolute
path, with these rules:
ccache, it is skippedto a target
ccache, it is skippedThese two tests will catch most ccache masquerade directories.
Fixes #2519