Set WITH_CCACHE to OFF for MSVC, so it doesn't show as ON in the configure summary.
Fixes #31771.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31983.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | hebasto |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Ccache could be supported for MSVC in the future, which might lead to these changes being reverted. Why not use https://github.com/bitcoin/bitcoin/pull/30861/commits/c19a187c42fe867d61ca5dbd48ae18f15201839f instead?
Why not use https://github.com/bitcoin/bitcoin/commit/c19a187c42fe867d61ca5dbd48ae18f15201839f instead?
From my read of #30861 nobody seems to agree that we should make this change? #30861 (review)
Set WITH_CCACHE to OFF for MSVC, so it doesn't show as ON in the
configure summary.
Fixes #31771.
679 | @@ -680,7 +680,9 @@ include(FlagsSummary) 680 | flags_summary() 681 | message("Attempt to harden executables ......... ${ENABLE_HARDENING}") 682 | message("Treat compiler warnings as errors ..... ${WERROR}") 683 | -message("Use ccache for compiling .............. ${WITH_CCACHE}") 684 | +if(NOT MSVC) 685 | + message("Use ccache for compiling .............. ${WITH_CCACHE}") 686 | +endif()
The MSVC variable is defined based on the compiler. However, the current ccache settings rely on the <LANG>_COMPILER_LAUNCHER properties, which are considered depending on the generator rather than the compiler.
Reworked this.
ACK c718bffc361a1227de9deb823c35dd11c8570ddd, I have reviewed the code and it looks OK.