ccache not being used in build

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • WT12.0.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Storage Engines, Storage Engines - Foundations
    • None
    • 1

      I built WiredTiger on a clean system using ninja.

      mkdir build
      cd build
      cmake -G Ninja ../.
      ninja

      Then I ran ccache -s and noticed it had not been invoked.

      Tracking this down, it is due to a minor typo introduced by WT-14975. These lines in CMakeLists.txt should not have commas in the set lines:

      if(CCACHE)
          set(CMAKE_C_COMPILER_LAUNCHER, ${CCACHE})
          set(CMAKE_CXX_COMPILER_LAUNCHER, ${CCACHE})
          message(STATUS "Using ccache: ${CCACHE}")
      endif() 

            Assignee:
            Alex Blekhman
            Reporter:
            Michael Cahill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: