build: don’t show ccache summary with MSVC #31983

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:msvc_no_ccache changing 1 files +2 −0
  1. fanquake commented at 11:47 am on March 4, 2025: member

    Set WITH_CCACHE to OFF for MSVC, so it doesn’t show as ON in the configure summary.

    Fixes #31771.

  2. DrahtBot commented at 11:48 am on March 4, 2025: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31983.

    Reviews

    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.

  3. DrahtBot added the label Build system on Mar 4, 2025
  4. hebasto commented at 11:53 am on March 4, 2025: member
    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?
  5. fanquake commented at 11:58 am on March 4, 2025: member

    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)

  6. build: don't use ccache with MSVC
    Set WITH_CCACHE to OFF for MSVC, so it doesn't show as ON in the
    configure summary.
    
    Fixes #31771.
    c718bffc36
  7. in CMakeLists.txt:685 in e682fc335d outdated
    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()
    


    hebasto commented at 12:18 pm on March 4, 2025:
    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.

    fanquake commented at 2:54 pm on March 4, 2025:
    Reworked this.
  8. fanquake force-pushed on Mar 4, 2025
  9. hebasto approved
  10. hebasto commented at 2:55 pm on March 4, 2025: member
    ACK c718bffc361a1227de9deb823c35dd11c8570ddd, I have reviewed the code and it looks OK.
  11. fanquake merged this on Mar 5, 2025
  12. fanquake closed this on Mar 5, 2025

  13. fanquake deleted the branch on Mar 5, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-03-31 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me