Set WITH_CCACHE
to OFF
for MSVC, so it doesn’t show as ON
in the configure summary.
Fixes #31771.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31983.
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.
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()
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.
Labels
Build system