Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1# Copyright (c) 2023-present The Bitcoin Core developers2# Distributed under the MIT software license, see the accompanying3# file COPYING or https://opensource.org/license/mit/.5if(NOT MSVC)6find_program(CCACHE_EXECUTABLE ccache)7if(CCACHE_EXECUTABLE)8execute_process(9COMMAND readlink -f ${CMAKE_CXX_COMPILER}10OUTPUT_VARIABLE compiler_resolved_link11ERROR_QUIET12OUTPUT_STRIP_TRAILING_WHITESPACE13)14if(CCACHE_EXECUTABLE STREQUAL compiler_resolved_link AND NOT WITH_CCACHE)15list(APPEND configure_warnings16"Disabling ccache was attempted using -DWITH_CCACHE=${WITH_CCACHE}, but ccache masquerades as the compiler."17)18set(WITH_CCACHE ON)19elseif(WITH_CCACHE)20list(APPEND CMAKE_C_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE})21list(APPEND CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_EXECUTABLE})22endif()23else()24set(WITH_CCACHE OFF)25endif()26else()27set(WITH_CCACHE OFF)28endif()30mark_as_advanced(CCACHE_EXECUTABLE)
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.