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#!/usr/bin/env bash2#3# Copyright (c) 2020-present The Bitcoin Core developers4# Distributed under the MIT software license, see the accompanying5# file COPYING or http://www.opensource.org/licenses/mit-license.php.7export LC_ALL=C.UTF-89export CI_IMAGE_NAME_TAG="mirror.gcr.io/ubuntu:26.04"10export APT_LLVM_V="23"11LIBCXX_DIR="/cxx_build/"12export MSAN_FLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -g -O1 -fno-optimize-sibling-calls"13LIBCXX_FLAGS="-nostdinc++ -nostdlib++ -isystem ${LIBCXX_DIR}include/c++/v1 -L${LIBCXX_DIR}lib -Wl,-rpath,${LIBCXX_DIR}lib -lc++ -lc++abi -lpthread -Wno-unused-command-line-argument"14export MSAN_AND_LIBCXX_FLAGS="${MSAN_FLAGS} ${LIBCXX_FLAGS}"16export CONTAINER_NAME="ci_native_msan"17export PACKAGES="clang-${APT_LLVM_V} llvm-${APT_LLVM_V} llvm-${APT_LLVM_V}-dev libclang-${APT_LLVM_V}-dev libclang-rt-${APT_LLVM_V}-dev python3-pip"18export PIP_PACKAGES="--break-system-packages pycapnp pyzmq"19export DEP_OPTS="DEBUG=1 NO_QT=1 CC=clang CXX=clang++ CFLAGS='${MSAN_FLAGS}' CXXFLAGS='${MSAN_AND_LIBCXX_FLAGS}'"20export GOAL="install"21export CI_LIMIT_STACK_SIZE=122# Setting CMAKE_{C,CXX}_FLAGS_DEBUG flags to an empty string ensures that the flags set in MSAN_FLAGS remain unaltered.23# _FORTIFY_SOURCE is not compatible with MSAN.24export BITCOIN_CONFIG="\25--preset=dev-mode \26-DBUILD_GUI=OFF \27-DCMAKE_BUILD_TYPE=Debug \28-DCMAKE_C_FLAGS_DEBUG='' \29-DCMAKE_CXX_FLAGS_DEBUG='' \30-DSANITIZERS=memory \31-DAPPEND_CPPFLAGS='-U_FORTIFY_SOURCE' \32"33export USE_INSTRUMENTED_LIBCPP="MemoryWithOrigins"
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.